Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

How to check if a groupbox contains any checked checkboxes?

$
0
0
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,

 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!

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>