martin.s.ransome
Active member
- Joined
- May 29, 2011
- Messages
- 25
- Programming Experience
- 5-10
I have created all the controls in my app in vb.net code. I have checkboxes that I want to be able to check the state in code and also check or uncheck if i need to this is my code which does not work
checked is not a property of of the the control class.
Error 1 'checkstate' is not a member of 'System.Windows.Forms.Control'.
Please share your wisdom.
Everyday I realize how very little I know.
VB.NET:
Dim objControl As Control
For Each objControl In Me.Controls
If TypeOf objControl Is CheckBox Then
objControl.checkstate = CheckState.Checked
End If
Next
checked is not a property of of the the control class.
Error 1 'checkstate' is not a member of 'System.Windows.Forms.Control'.
Please share your wisdom.
Everyday I realize how very little I know.