Windows Forms CheckBox (CheckBoxAdv) Overview
3 Sep 2020 / 1 minute to read
The CheckBoxAdv is an advanced CheckBox control that supports themes, gradient colors, border settings, and shadow text with various alignment options for both the text and check box. It provides options to display images and gradient backgrounds.
The CheckBoxAdv control can replace the CheckBox control provided in Windows Forms. This type of control can be defined as consisting of a graphic and associated text that the user clicks to select or deselect an option. A check mark in the check box graphic indicates the option selected. In the CheckBoxAdv control, the graphic can be changed to an image that indicates a selected or deselected state.
The CheckBoxAdv is an advanced CheckBox control, and it contains the following features.
CheckBoxAdv Settings - The CheckBoxAdv can be displayed in the checked, unchecked, and indeterminate states using the CheckState property. The integer and string values can be associated with each state of the CheckBoxAdv.
Text Settings - The text of the CheckBoxAdv control can be shadowed, and the shadow color and offset can also be specified. The text can be wrapped by setting the WrapText property to
Appearance and Behavior Settings - The focus rectangle can be made visible or hidden. The height of the CheckBoxAdv can be automatically calculated. Its mode can be set to the
ReadOnlyMode. The Tristate property can be used to access the indeterminate state through a single click.
Alignment Settings - The text and check box of the CheckBoxAdv control can be aligned to any desired location by users.
Background Settings - CheckBoxAdv can be created with custom gradient backgrounds.
Border Settings - 2-D and 3-D border styles can be applied to the CheckBoxAdv. The HotBorderColor property can be used to specify the color of the FixedSingle border during mouse hover.
Image Settings - You can set image for the CheckBoxAdv when it is in checked, unchecked, disabled, or indeterminate.
Themes and Visual Styles - Themes can be enabled for the CheckBoxAdv. It provides the Office2007 and Office2010 Visual Style that comes in the blue, silver, and black colors. The Office2007 and Office2010 style also supports custom colors that can be applied to the CheckBoxAdv control.
Data binding - You can bind the CheckBoxAdv to a datasource such as an SQL database.