GroupBox Control

Description

GroupBox controls are used to provide an identifiable grouping for other controls. Typically, you use group boxes to subdivide a form by function. For example, you may have a setup form that specifies robot speed options.. Grouping all options in a group box gives the user a logical visual cue.

Usage

Use the GroupBox control to group together controls for selecting options (using RadioButtons) or setting preferences (using CheckBoxes). You can also group together other controls as well.
First, add a GroupBox control to your form.
Next, either create new controls on the groupbox, or drag existing controls to the groupbox.
Set the Text property of the groupbox to the name of the group.

Setting GroupBox Appearance
Use the BackColor, ForeColor, and Font properties to change the appearance of the picturebox.

GroupBox Control Properties

Property Description
BackColor

The background color for the control.

Default: Control

Enabled

Sets whether the control is enabled at runtime.

Default: True

EventTaskType

The type of task used for events.

Default: Normal

Font

The font for the control text.

Default: Microsoft Sans Serif 8.25 pt

FontBold

The bold attribute for the current font

Default: False

FontItalic

The italic attribute for the current font

Default: False

FontName

The name for the current font

FontSize

The size for the current font in points

Default: 8.25

ForeColor

The foreground color for the control text.

Default: ControlText

Height The height of the control in pixels.
Left The left coordinate of the control in pixels.
Name

The name of the control.

Default: GroupBoxXX

TabIndex The tab index of the control.
Text

The text of the control.

Default: Name of control

ToolTipText

The text used in the control’s tooltip.

Default: Empty

Top The top coordinate of the control in pixels.
Visible

Whether the control is visible or not at runtime.

Default: True

Width The width of the control in pixels.

GroupBox Control Events

Event Description
Click Executes when the user clicks the control with the mouse.