- g
- The System.Drawing.Graphics used to draw the group box.
- bounds
- The System.Drawing.Rectangle that specifies the bounds of the group box.
- groupBoxText
- The string to draw with the group box.
- font
- The System.Drawing.Font to apply to groupBoxText.
- state
- One of the System.Windows.Forms.VisualStyles.GroupBoxState values that specifies the visual state of the group box.
If visual styles are enabled in the operating system and visual styles are applied to the current application, this method will draw the group box with the current visual style. Otherwise, this method will draw the group box with the classic Windows style.