Let's say I have a group box that contains several checkboxes. I want to check if any are checked and if so alert the user.
For example,
However, is there a more robust code? As my actual code will get very messy if i use the above code.
Much appreciated!
For example,
If (chk1.Checked = True) Or (chk2.Checked = True) Or (chk3.Checked = True) Then
messagebox.show("Checkbox selected")
end if
However, is there a more robust code? As my actual code will get very messy if i use the above code.
Much appreciated!