المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Limit checkedListBox for maximum values



C# Programming
08-12-2009, 04:16 PM
Hi,
I have an checkedListBox with 7 items :
1. a
2. b
3. c
4. d
5. e
6. f
7. g

I want to limit the user to choose only two , after 2 checkbox are checked i want it to be impossible to let the user to check another checkbox until he unchecked at least one of the checkbox that been checked.
How can i do it?

Thanks.