- Online Barcode Generator
- How To
- Buy Now
WinForms C# Color Box Control
The Kettic Color Box Control is .NET component that is designed for .NET UI designers to build user friendly application. The C# Color Box WinForms Control provides the support of themes predefined in the WinForms UI Suite and custom themes. It allows users to choose a color from a color dialog or type the color in the text field directly.
Using C# Color Box Control
The steps below show the process how to configure the fore color to the label WinForms control by using the Kettic Color Box Control for Windows Forms.
Color Input with the Control
The Kettic Color Box Control is able to help developers to choose a color from a color dialog with predefined colors or to directly type the color name into the text field. The Color Box control support the input formats of color name, RGB value, and small rectangle.
Properties of Color Editor Control
Value, this is the property used to configure the value to the browse editor control
ReadOnly, this is a property used to prevent direct text entry and change the value via color dialog button when it is true.
DialogType, this is a property used to open color dialog while clicking the browse button.
Events of Color Editor Control
ChangeValue, The ChangeValue event is used to prevent changing the value before the value changes. It is able to pass a parameter, ChangeValueEventArgs, in which the OldValue, NewValue and Cancel properties are contained. The Cancel property determines if preventing the changes. The following C# code shows how to cancel the value changing to a new invalid value of a color.
UI Controlsfor Windows Forms.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls