missing group property in visual studio

i cannot locate the group property setting for a radio button in visual c
BushBillAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jacques Bourgeois (James Burger)PresidentCommented:
There is nothing such as a group property setting, so I am not sure what you are trying to do here.

RadioButtons in .NET do not work the same way as they do in other environments such as Microsoft Access.

They can be used in many different containers, so the notion of a group does not exist. If they are in a GroupBox, you can reference the GroupBox itself with:
DirectCast(RadioButton1.Container,GroupBox)

Open in new window

From the GroupBox, if you want to know which button is checked, you would use code like this one:
For Each Button As RadioButton In GroupBox1.Controls
   If Button.Checked Then
      MessageBox.Show(Button.Text & " is activated")
      Exit For
   End If
Next

Open in new window

0
BushBillAuthor Commented:
I want the radio buttons to be checked independently of each other. MSDN documentation saya that behavior requires the Group property of the first radio button to be false. I cannot locate this property.
0
Jacques Bourgeois (James Burger)PresidentCommented:
In what environment are you? It is important to specify it or to select a zone that indicates it when you post questions. It is also important that you do so also when you lookup information in the documentation.

I was assuming that you were developing a Windows Application. In such environment, there is no Group property.

RadioButtons in an ASP or WPF application would behave differently.

I would also question the idea of using RadioButtons that can be checked independently from each other. This will mislead the user. This type of operation is usually done with CheckBoxes, not RadioButtons. A user that checks one of your RadioButtons and won't see the other being automatically checked off will wonder what is happening.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

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.