AtlantaBob
Golden Member
So I want to loop through the controls collection in a visual basic form, and, if the control is of type "checkbox" then I want it to be unchecked and disabled.
Pseudo code (and very visual basic like):
1 dim obj as control
2 for each obj in Controls
3 if obj is of type checkbox then
4 obj.checkstate = checkstate.unchecked
5 obj.enabled = false
6 else
7 end if
What's the VB syntax for line 3? I can't seem to find it in help or google.
Thanks.
Pseudo code (and very visual basic like):
1 dim obj as control
2 for each obj in Controls
3 if obj is of type checkbox then
4 obj.checkstate = checkstate.unchecked
5 obj.enabled = false
6 else
7 end if
What's the VB syntax for line 3? I can't seem to find it in help or google.
Thanks.