Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Thanks,

Tehon

  • *Experts*
Posted

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

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Posted

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:

Thanks,

Tehon

  • *Experts*
Posted

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

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...