Radio Buttons as GroupBox headers

Posted on 2009-02-11
Medium Priority
Last Modified: 2013-11-26

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.

Question by:shorak
LVL 52

Accepted Solution

Carl Tawn earned 1000 total points
ID: 23610537
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
LVL 11

Author Closing Comment

ID: 31545508
thanks for your help..

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question