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 Controls with the GroupBox Control

Win Forms GroupBox controls are used to group other controls. There are three reasons to group controls. One is visual grouping of related form elements for a clear user interface; another is programmatic grouping, for example of radio buttons; the last is for moving the controls as a unit at design time.

To create a group of controls at run time

  1. Add a GroupBox control on a form.
  2. Add other controls to the GroupBox using the Add method of the GroupBox control.
  3. Set the Text property of the GroupBox to an appropriate caption.

See Also

GroupBox Control | GroupBox Class