On Feb 20, 8:16 am, "Peter Bradley" <pbrad...@uwic.ac.ukwrote:
You need to ask yourself why you are designing a form that uses the same
control for two unrelated purposes. You probably need two different
controls (a radio group, and a check box group) that you enable at different
times according to the application's requirements.
I agree with Peter. Put two panels on your Form, one containing
RadioButtons and the other containing CheckBoxes. Show the appropriate
panel at the appropriate time.
This is also nice for the user, who gets a clear, visual cue when they
are allowed to choose multiple choices and when they are allowed to
choose just one.
If you had to do something fancy like allowing up to two choices (but
no more) then I would do it by disabling all of the other check boxes
when the user checks the second one (for immediate feedback) or just
waiting until they push OK to inform them that they chose too many
(the latter being easier and also allows you to establish minimum
numbers of choices).
However, since it's just between "choose one" and "choose as many as
you like", I would go with two sets of controls. A little more work,
but easier for the user to understand.