VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Enable and disable control of current form

by Chintesh Soni (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 14th June 2006
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Enable and disable control of current form

API Declarations


Dim ctrl As Control


Rate Enable and disable control of current form



For Each ctrl In frmlrbkg.Controls
    If TypeOf ctrl Is TextBox Or TypeOf ctrl Is CheckBox Or _
    TypeOf ctrl Is DataCombo Or TypeOf ctrl Is ComboBox Then
        If ctrl.Tag = "*" Then
            ctrl.Enabled = xans
        End If
    End If
Next
End Sub


Download this snippet    Add to My Saved Code

Enable and disable control of current form Comments

No comments have been posted about Enable and disable control of current form. Why not be the first to post a comment about Enable and disable control of current form.

Post your comment

Subject:
Message:
0/1000 characters