I've built a user control inherited button and I need it to change the
enabled property of all the controls on the form except for the labels and
buttons. I'd like to use this control on other forms to do the same.
I've tried the following:
Dim a as ControlsCollection = Me.Parent.Controls
Dim s as Controls
For Each s in a
s.enabled = False
Next
This sets all the controls enabled property to false including labels and
buttons. Any suggestions on how I can only change the enabled property of
certain controls?
--
TC