capuring an event from Generic List of CheckBox controls

I have a List<Checkbox> controls that I need to detect whether or not other elements in this List<Checkbox> are checked or not. I'm figuring that I need to use an Event but struggling to put together. Does anyone have any experience with this specifically or could share some example code?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

anarki_jimbelSenior DeveloperCommented:
Could you please explain your scenario in more details?
One way  - you may iterate through items and check if check boxes are checked. No events...
csalernoAuthor Commented:
I have a list of CheckBox controls displayed in a Panel that I need to allow only one in the list to be checked at a time.
anarki_jimbelSenior DeveloperCommented:
Wouldn't it be easier to use radiobuttons? When you have several radiobuttons on a panel/container one only can be checked at a time. You do not need to do anything. Radiobuttons are available both for win forms and web controls:

anarki_jimbelSenior DeveloperCommented:
One more thought. I believe in Ui we need to obey some conventions. If a user sees check boxes he/she expects that any number of check boxes can be checked. Check boxes should NOT behave like radiobutton. Same with radiobuttons. User expects that ONE ONLY radiobutton can be checked at a time, and it would be very wrong to make radiobuttons behave like check boxes.

This is true for for any language, is it VB, C#, C, Java, PHP, name it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.