private void CreateGcColorPickerWithCustomThemeColors()
{
// Create an instance of GcColorPicker control.
GcColorPicker gcColorPicker = new GcColorPicker();
// Initialize the Name and Location of the gcColorPicker.
gcColorPicker.Name = "gcColorPicker";
gcColorPicker.Location = new Point(10, 50);
gcColorPicker.ThemeColors = new ThemeColors(
new Color[]
{
Color.AliceBlue,
Color.Blue,
Color.BlueViolet,
Color.CadetBlue,
Color.CornflowerBlue,
Color.DarkBlue,
Color.DarkSlateBlue,
Color.DeepSkyBlue,
Color.DodgerBlue,
Color.LightBlue
});
gcColorPicker.ThemeColorsText = "Blue Themed Colors";
// adds gcColorPicker to the form.
this.Controls.Add(gcColorPicker);
}
Private Sub CreateGcColorPickerWithCustomThemeColors()
' Create an instance of GcColorPicker control.
Dim gcColorPicker As New GcColorPicker()
' Initialize the Name and Location of the gcColorPicker.
gcColorPicker.Name = "gcColorPicker"
gcColorPicker.Location = New Point(10, 50)
gcColorPicker.ThemeColors = New ThemeColors(New Color() {Color.AliceBlue, Color.Blue, Color.BlueViolet, Color.CadetBlue, Color.CornflowerBlue, Color.DarkBlue, _
Color.DarkSlateBlue, Color.DeepSkyBlue, Color.DodgerBlue, Color.LightBlue})
gcColorPicker.ThemeColorsText = "Blue Themed Colors"
' adds gcColorPicker to the form.
Me.Controls.Add(gcColorPicker)
End Sub