| layout | post |
|---|---|
| title | Runtime Selection in Windows Forms Color Picker control | Syncfusion® |
| description | Learn about Runtime Selection support in Syncfusion® Windows Forms Color Picker (ColorPickerUIAdv) control and more details. |
| platform | windowsforms |
| control | ColorPickerUIAdv |
| documentation | ug |
The ColorPickerUIAdv control at run time provides a Color dialog, using which we can select and add colors to the color groups.
Automatic color that has to be selected, when Automatic button is clicked at run time, is set through AutomaticColor property. Default color is black.
{% tabs %} {% highlight c# %}
this.colorPickerUIAdv1.AutomaticColor = System.Drawing.Color.OrangeRed;
{% endhighlight %}
{% highlight vb %}
Me.colorPickerUIAdv1.AutomaticColor = System.Drawing.Color.OrangeRed
{% endhighlight %} {% endtabs %}
N> Height of this Automatic button can be specified in ColorPickerUIAdv.ButtonHeight property. Default value is 23.

