Radio Buttons

tehon3299

Centurion
Joined
Jan 6, 2003
Messages
155
Location
Liverpool, NY
Hey Guys -

I was just wondering how I would be able to get 2 sets of radio buttons on the same page to be checked at once. For example, I have a set of 2 radio buttons and the user has to choose one of them, and then I have 4 other radio buttons for another option on the same for but it only lets the user choose 1 of the 6 on the page. How to I tell it to let the user choose 2 of the radio buttons on the form??
 
Put the groups of radio buttons (2 and 4) in a container, such as a GroupBox or Panel (GroupBox is preferred, usually, if you want a border and title).

-Nerseus
 
Hey -

I put them both in 2 seperate GroupBox's (2 and 4) and it does the same thing. I click one of the first 2 and then one of the second group and the first one becomes unchecked. Do I need to group them together or something? I was looking around for a Group option but there isn't one. What am I doing wrong?

Thanks,
Tehon
:confused:
 
You didn't actually put them in a seperate container. You probably just dragged them over the top or something. You need to actually create them in seperate containers for them to group themselves properly.
 
To put them in the container if they're already on the form:
1. Click on the radio button in the designer to give it focus
2. Cut them from the designer (Ctrl-X)
3. Click on the GroupBox to make sure it has focus
4. Paste the cut controls into the GroupBox

Alternatively, if you "draw" the radio buttons in the GroupBox when you first put them on the form, they'll be contained automatically.

-Nerseus
 
Back
Top