missing group property in visual studio

Posted on 2011-10-05
Last Modified: 2013-12-16
i cannot locate the group property setting for a radio button in visual c
Question by:BushBill
    LVL 40

    Expert Comment

    by:Jacques Bourgeois (James Burger)
    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:

    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

    Open in new window


    Author Comment

    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.
    LVL 40

    Accepted Solution

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now