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
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