I have a form with a lot of checkboxes on it. I want to be able to set all the checkbox properties to "checked" in my code. Here is what I would like to do:
For Each ctl As Control In Me.Controls
If TypeOf ctl Is CheckBox Then
ctl.checked = True <===== This does not work
End If
Next
I may have to put the checkboxes in a container. How would I expand the code to look at the checkboxes only in GroupBox1?
I am sure this is very simple, but I have hit a dead end trying to figure it out!