Table of Contents

ExGroupBox

ExGroupBox is a GroupBox that draws its border with its own color, thickness and dash style, and the text of a disabled group box in its own color.

Custom style

Property Description
DefaultStyle true (default) leaves the drawing to Windows, false uses the custom style.
BorderColor, BorderThickness Border of the group.
BorderStyle Dash style of the border (DashStyle).
DisabledForeColor Text of a disabled group box.

The LineDrawing event gets the Pen of the border before it is drawn, so the application can change it further.

Theme

The group box applies the theme to its child controls first, then takes PanelBackColor and PanelForeColor and a 1 px border in BorderColor.

API