We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Radio Buttons as GroupBox headers

Medium Priority
1,502 Views
Last Modified: 2013-11-26
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
Comment
Watch Question

Senior Systems and Integration Developer
CERTIFIED EXPERT
Commented:
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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
thanks for your help..
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.