I have a Groupbox control on my form in which I have about 8 checkbox controls. One of the checkboxes, if checked, will make the rest of the checkboxes become checked. I have the following code that isn't working.
With what I have above, "Checked" isn't a property of the "ctl". What am I doing wrong in this construct?Code:For Each ctl As Control In gb1.Container.Components If TypeOf (ctl) Is CheckBox Then ctl.Checked = True 'Isn't working End If Next
Thanks,




Reply With Quote