I've got a group box with 10 check boxes on a form and a 'Select All' button and Reset button. In the General Declarations I've declared Dim c as Control, then in the click event of the 'Select All' button I've got the following code:
For Each c in Controls
If Typeof (c) Is Checkbox
c.Checked = True
End If
Next
I'm having build problems, however, and the message "Checked is not a member of 'Systems.Windows.Forms.Control'"
Is there something blindingly obvious I'm overlooking?
Any help would be great.
For Each c in Controls
If Typeof (c) Is Checkbox
c.Checked = True
End If
Next
I'm having build problems, however, and the message "Checked is not a member of 'Systems.Windows.Forms.Control'"
Is there something blindingly obvious I'm overlooking?
Any help would be great.