Hi,
I have created this function in my project. But it doesnt work. What is wrong with the above code? Please tell me as soon as possible.
Thanks
Code:
Dim objtmp As Control
Public Function OnLoad(ByVal frmobj1 As Form)
For Each objtmp In frmobj1.Controls
If TypeOf objtmp Is TextBox Then
objtmp.Enabled = False
End If
Next tmp
End Function
Thanks
Comment