• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1475
  • Last Modified:

Radio Buttons as GroupBox headers

Hi

I'm a beginner in using VS2008 and vb.net and am trying out a few things. One of the things I'm try to do is have a radio button as the caption of the group box.

As an example.. say I have two GroupBox's on a form, each containing various textboxes, I want a radio button as the header of each Groupbox and the user will only be able to select one or the other 'dot' and not both. Currently, I can select both radio buttons at the same time and this is not what I want.

Ultimately, I want to use the radio button to control whether the contents of the GroupBox's are active or not. Say the user select the first radio button, this will allow the user to enter data into the textboxes within the 1st GroupBox but the textboxes in the other group will be greyed out. If the user selects the 2nd radio button then the items in the 2nd groupbox become active and the contents of the first groupbox become greyed out.

How can I achive this or am I going about this the wrong way?

Thanks for your help.

Rob
0
shorak
Asked:
shorak
1 Solution
 
Carl TawnSystems and Integration DeveloperCommented:
The trick is to add the radio buttons to the form rather than the groupbox itself. You will need to use set the location of the radio button using the properties panel because if you simply drag the control VS will usually add it to the groupbox
0
 
shorakAuthor Commented:
thanks for your help..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now