kosala1981
Programmer
how to lock set of controls in a form with out specifying one by one. i tried
a for loop. but it didnt work. i couldn't get the Locked property of the
controls.
here is my code:
For x = 0 To Me.Count - 1
If TypeOf Me.Controls(x) Is TextBox Then
Me.Controls(x).Locked = True
ElseIf TypeOf Me.Controls(x) Is ComboBox Then
Me.Controls(x).Locked = True
End If
Next x
the above code gives an error.
how to lock all controls in the form at once. answer would be really
appreciated.
a for loop. but it didnt work. i couldn't get the Locked property of the
controls.
here is my code:
For x = 0 To Me.Count - 1
If TypeOf Me.Controls(x) Is TextBox Then
Me.Controls(x).Locked = True
ElseIf TypeOf Me.Controls(x) Is ComboBox Then
Me.Controls(x).Locked = True
End If
Next x
the above code gives an error.
how to lock all controls in the form at once. answer would be really
appreciated.