Do I need to use GroupBox to separate groups of radio buttons on Win form?

R

Ronald S. Cook

Do multiple sets of radio buttons on a form have to be "separated" via group
boxes?

I remember there used to be a "group" property on radio buttons but I guess
not anymore.

I just don't really want to use a GroupBox control if I don't have to
(although I could make it's border color the same as the form background I
suppose).

Thanks,
Ron
 
P

Peter Duniho

Do multiple sets of radio buttons on a form have to be "separated" via
group boxes?

I remember there used to be a "group" property on radio buttons but I
guess not anymore.

The default behavior, if I recall correctly, is that radio buttons grouped
within any container control operate together. If you like, you can use a
Panel or even a UserControl, neither of which have any visual behavior by
default, to group radio buttons invisibly.

Of course, you could always just link the group buttons by appropriate
event handlers that do the right thing, deselecting the other buttons in a
group when a particular button is selected.

Pete
 

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