I have a groupbox called "GradeGroupBox" that contains 4 radio buttons for each high school grade. I also have a clear button which, when pressed, should deselect any values in that box. how can this be completed? I know how to do each one individually, but is there a way to do it as a group?

Hi,

You can try this in a button event:

For Each ctrl As Control In GroupBox1.Controls

            CType(ctrl, RadioButton).Checked = False

        Next
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.