Group Radio Buttons Without GroupBox or Panel.

S

Sin Jeong-hun

Suppose there are 4 radion buttons on the form. There's no groupbox or
panel to seperate them. By default, the 4 radio buttons are mutually
exclusive. Is it possible to group them into two groups?

For example,
Gender ( )rb1 ( )rb2
Marital status ( )rb3 ( )rb4

On HTML, I could group them designating the same name for the radio
buttons. How can I do this in C# without using groupbox , panel or any
other container components? Thank you.
 
D

Dom

Why doyou stipulate that you can't use an group box or a panel? One
of the uses of the panel control is to do exactly what you want.

Dom
 
S

Sin Jeong-hun

You mean that it is impossible? I was just curious if I could group
radio buttons
without other container components. If it is impossible, I will use a
panel.
Thank you.
 
Joined
Jul 26, 2010
Messages
30
Reaction score
0
I have the same question. I don't want a groupbox. say i want radio1_group1 in the top left corner, radio2_group1 in the bottom right corner, radio1_group2 in the top right corner, and radio2_group2 in the bottom left corner. how am i supposed to make a groupbox like that?

it's not even that i want the radio buttons like that but i'm making a dynamic form that is populated by xml; so i want to user to be able to chose where to put each radio button and they will already be grouped by their <RADIO> container in xml.
 

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