ColorPickerUIAdv Appearance in Windows Forms Color Picker

27 Apr 20212 minutes to read

Style Settings

Visual Style

The appearance and behavior settings, available for the ColorPickerUIAdv are discussed in this section. This control supports the below VisualStyles

  • Default
  • Office2007
  • Office2010
  • Metro
  • Office2016Colorful
  • Office2016White
  • Office2016Black
  • Office2016DarkGray

The style can be applied using the Style property. The following code example allows you to set the style for the ColorPickerUIAdv.

//Sets the Office2016 colorful style for ColorPickerUIAdv
this.colorPickerUIAdv1.Style = Syncfusion.Windows.Forms.Tools.ColorPickerUIAdv.visualstyle.Office2016Colorful;
'Sets the Office2016 colorful style for ColorPickerUIAdv
Me.colorPickerUIAdv1.Style = Syncfusion.Windows.Forms.Tools.ColorPickerUIAdv.visualstyle.Office2016Colorful

Windows forms ColorPickerUIAdv visualstyle

Office2007 Color Schemes

By default ColorPickerUIAdv control has Office2007 look and feel.

ColorPickerUIAdv Properties Description
UseOffice2007Style Office 2007 style can be enabled or disabled using this property. By default it is true.
Office2007Theme Sets the color scheme for the Office2007 Style.
colorPickerUIAdv1.UseOffice2007Style = true;

//Sets Office2007 Black color Theme
colorPickerUIAdv1.Office2007Theme = Syncfusion.Windows.Forms.Office2007Theme.Black;
colorPickerUIAdv1.UseOffice2007Style = True

'Sets Office2007 Black color Theme
Private colorPickerUIAdv1.Office2007Theme = Syncfusion.Windows.Forms.Office2007Theme.Black

Windows forms ColorPickerUIAdv applying Office2007Theme

The Office2007 Visual Styles can be turned off by setting the UseOffice2007Style property to false.

Windows forms ColorPickerUIAdv sets Office2007Style property is false

Custom Colors

We can also apply custom colors to the ColorPickerUIAdv control by setting Office2007Theme to “Managed” and specifying the custom color through the ApplyManagedColors method as follows.

this.colorPickerUIAdv1.Office2007Theme = Syncfusion.Windows.Forms.Office2007Theme.Managed;
Office2007Colors.ApplyManagedColors(this, Color.Orange);
Me.colorPickerUIAdv1.Office2007Theme = Syncfusion.Windows.Forms.Office2007Theme.Managed;
Office2007Colors.ApplyManagedColors(Me, Color.Orange)

Windows forms ColorPickerUIAdv applying custom colors

Border Settings

Border Styles

Border for ColorPickerUIAdv control can be Fixed Single, Fixed3D or None, which is set using BorderStyle property. By default the border style is None.

this.colorPickerUIAdv1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
Me.colorPickerUIAdv1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D

Windows forms ColorPickerUIAdv sets borderstyle


The below property is used to change the border height.

ColorPickerUIAdv Property Description
BorderOffset Set the border height for ColorPickerUIAdv control. The default value is 3.