NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Grouping RadioButton Controls to Function As a Set

Win Forms RadioButton controls are designed to give users a choice among two or more settings, of which only one can be assigned to a procedure or object. For example, a group of RadioButton controls may display a choice of package carriers for an order, but only one of the carriers will be used. Therefore only one RadioButton at a time can be selected, even if it's a part of a functional group.

You group radio buttons by drawing them inside a container such as a Panel control, a GroupBox control, or a form. All radio buttons that are added directly to a form become one group. To add additional groups, you need to place them inside panels or group boxes. For more information on panels or group boxes, see Panel Control and GroupBox Control.

To group RadioButton controls to function as a set

  1. Add a GroupBox or Panel control to the form.
  2. Use the Add method of the GroupBox or Panel control to add RadioButton control to the GroupBox or Panel control.
  3. Position the RadioButton controls within the GroupBox or Panel as needed.

See Also

RadioButton Control | Panel Control| GroupBox Control | CheckBox Control