Radio Buttons as GroupBox headers
Posted on 2009-02-11
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.