I have over 30+ checkboxes on a form that I want to check to see if they're all checked and do something in which the code below works great. But I need to somehow change the code and not check for certain checkboxes.
For example checkboxes: chkNET, chkCIMS, chkLCD, chkCSI
should be excluded from the code below...
Dim AllChecked As Boolean = True
For Each c As Control In Me.Controls
If TypeOf c Is CheckBox Then
If Not CType(c, CheckBox).Checked Then
AllChecked = False
If AllChecked Then
'// All checkboxes are checked