Group checkbox

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
 
R

Rob Blackmore

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
 
A

axapta

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?
 
R

Rob Blackmore

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
 
A

axapta

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top