ExRichTextBox
ExRichTextBox is a RichTextBox that draws its border in its own color, highlighted under the mouse and with focus,
and has its own colors when disabled. The formatting of the text works as in RichTextBox.
Custom style
| Property | Description |
|---|---|
DefaultStyle |
true (default) leaves the drawing to Windows, false uses the custom style. |
BorderColor, BorderThickness |
Border of the box. |
HighlightColor |
Border under the mouse and with focus. |
DisabledBorderColor, DisabledBackColor, DisabledForeColor |
Colors of a disabled box. |
BorderStyle |
Border in the default style. In the custom style the native border is None, the value is kept for the default style. |
Theme
| Theme color | Used for |
|---|---|
BoxBackColor, BoxForeColor |
Background and text. |
BorderColor |
Border. |
HighlightBackColor |
Border under the mouse and with focus. |
ButtonBackColor |
Border of a disabled box. |
PanelBackColor |
Background of a disabled box. |
DarkScrollBars |
Scroll bars. |
A box without a border in the design stays in the default style, so it doesn't get a border, and takes only the colors of
the theme. A box designed with DefaultStyle = false keeps the custom style also in the system style.
Changing ForeColor recolors text without its own color and RichTextBox records it in its undo history, so apply the
theme before formatting the text or format it again afterwards.


