Group checkbox

  • Thread starter Thread starter axapta
  • Start date Start date
A

axapta

Hi group,
How can I group a couple of check boxes on my form so that only ONE can be
checked an anytime?
I've tried placing them onto a panel but I can still check them both.

Using VB.NET
Regards
 
You should use radio buttons for this type of behaviour as users will expect
to be able to check none, one or all checkboxes?

Otherwise, the only method I can think of is to put code in each
CheckedChanged event to uncheck all of the other checkboxes.

Kind regards

Rob
 
Thanks Rob.
And place the radio buttons on a panel? Sorry I'm not at work at the moment
and can't envisage how using radio buttons will work - surely they are
placed on the form one at a time like a check box?
 
Hi,

Yes - put each "set" of radio buttons in a different panel. Then you can
only select one from each set as the panel being the container control is
what determines that they are grouped together.

Kind regards

Rob
 
Thanks Rob, I'll give that a go.
Rob Blackmore said:
Hi,

Yes - put each "set" of radio buttons in a different panel. Then you can
only select one from each set as the panel being the container control is
what determines that they are grouped together.

Kind regards

Rob
 
Back
Top