GroupBox Control in VB.NET
GroupBox control is used to group other controls of VB.NET.
GroupBox control having a frame to indicate boundary and a text to indicate header or title.
Generally GroupBox control is used as a container for Radio Button. When Radio Buttons are grouped using GroupBox, user can select one RadioButton from each GroupBox.
Properties of GroupBox Control in VB.NET
| Property | Purpose |
BackColor |
It is used to get or set background color of the GroupBox. |
BackgroundImage |
It is used to get or set background Image of the GroupBox. |
BackgroundImageLayout |
It is used to get or set background Image layout of the GroupBox. It has one of the following values: |
Font |
It is used to get or set font Style, Font Size, Font Face of the text contained in GroupBox Control. |
ForeColor |
It is used to get or set color of the text contained in GroupBox Control. |
Enabled |
It is used to specify weather GroupBox Control is enabled or not. It has Boolean value. Default value is true. |
Visible |
It is used to specify weather GroupBox Control is visible or not at run time. It has Boolean value. Default value is true. |
Text |
It is used to get or set Title or Header Text of the GroupBox Control. |
Methods of GroupBox Control in VB.NET
| Method | Purpose |
Show |
It is used to show GroupBox Control. |
Hide |
It is used to Hide GroupBox Control at run time. |
Focus |
It is used to set cursor or focus on GroupBox Control. |