$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
Windows Forms Color Box Control
A themable Color Box control for selecting a color from a color dialog
Home > WinForms UI Controls > User Manual > Editor Color Box in C#

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.
  1. Open your .NET project, drag a Kettic Color Box Control and a Label Control, and drop them on a form.
  2. Choose the Kettic Color Box Control, and hit the Events tab in the Property Window
  3. Locate the event, ValueAdjusted, and create an event handler by double clicking this event.
  4. Copy and paste the C# code snippet to the event handler.
  5. Debug the Windows Forms application and click the color dialog button to choose a color verifying if the label control apply the color.

private void colorBox_ChangeValue(object sender, EventArgs e)
this.label.ForeColor = this.colorBox.Value;

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.

private void colorBox_ValueChanging(object sender, Kettic.WinForms.UI.ChangeValueEventArgs e)
e.Cancel = !((Color)e.NewValue).IsNamedColor;
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