Articles in this section
Category / Section

How to support the visual style appearance in Syncfusion WinForms controls?

2 mins read

Visual style

Almost all the Syncfusion controls are supported by Visual Styles. You can make use of the following demo for your reference.

 

Show visual style demo

Figure 1: Visual Style Demo

The following code example shows Visual Styles specified for the list controls.

C#

//Specifies the Visual Style as Metro.
this.comboBoxAdv1.Style = Syncfusion.Windows.Forms.VisualStyle.Metro;
this.comboBoxAutoComplete1.VisualStyle = Syncfusion.Windows.Forms.Tools.ThemedComboBoxStyles.Metro;
this.comboBoxBase1.Style = Syncfusion.Windows.Forms.VisualStyle.Metro;
this.comboDropDown1.Style = Syncfusion.Windows.Forms.VisualStyle.Metro;
this.multiSelectionComboBox1.ButtonStyle = ButtonAppearance.Metro;
this.multiSelectionComboBox1.UseVisualStyle = true;
this.multiColumnComboBox1.Style = Syncfusion.Windows.Forms.VisualStyle.Metro;
this.fontComboBox1.VisualStyle = Syncfusion.Windows.Forms.Tools.ThemedComboBoxStyles.Metro;
// Specifies the Visual Style as Office2007.
this.comboBoxAdv1.Style = Syncfusion.Windows.Forms.VisualStyle.Office2007;
this.comboBoxAutoComplete1.VisualStyle = Syncfusion.Windows.Forms.Tools.ThemedComboBoxStyles.Office2007;
this.comboBoxBase1.Style = Syncfusion.Windows.Forms.VisualStyle.Office2007;
this.comboDropDown1.Style = Syncfusion.Windows.Forms.VisualStyle.Office2007;
this.multiSelectionComboBox1.ButtonStyle = ButtonAppearance.Office2007;
this.multiSelectionComboBox1.UseVisualStyle = true;
this.multiColumnComboBox1.Style = Syncfusion.Windows.Forms.VisualStyle.Office2007;
this.fontComboBox1.VisualStyle = Syncfusion.Windows.Forms.Tools.ThemedComboBoxStyles.Office2007;
// Specifies the Visual Style as Office2010.
this.comboBoxAdv1.Style = Syncfusion.Windows.Forms.VisualStyle.Office2010;
this.comboBoxAutoComplete1.VisualStyle = Syncfusion.Windows.Forms.Tools.ThemedComboBoxStyles.Office2010;
this.comboBoxBase1.Style = Syncfusion.Windows.Forms.VisualStyle.Office2010;
this.comboDropDown1.Style = Syncfusion.Windows.Forms.VisualStyle.Office2010;
this.multiSelectionComboBox1.ButtonStyle = ButtonAppearance.Office2010;
this.multiSelectionComboBox1.UseVisualStyle = true;
this.multiColumnComboBox1.Style = Syncfusion.Windows.Forms.VisualStyle.Office2010;
this.fontComboBox1.VisualStyle = Syncfusion.Windows.Forms.Tools.ThemedComboBoxStyles.Office2010;
//Specifies the Visual Style as Default.
this.comboBoxAdv1.Style = Syncfusion.Windows.Forms.VisualStyle.Default;
this.comboBoxAutoComplete1.VisualStyle = Syncfusion.Windows.Forms.Tools.ThemedComboBoxStyles.Default;
this.comboBoxBase1.Style = Syncfusion.Windows.Forms.VisualStyle.Default;
this.comboDropDown1.Style = Syncfusion.Windows.Forms.VisualStyle.Default;
this.multiSelectionComboBox1.ButtonStyle = ButtonAppearance.None;
this.multiColumnComboBox1.Style = Syncfusion.Windows.Forms.VisualStyle.Default;
this.fontComboBox1.VisualStyle = Syncfusion.Windows.Forms.Tools.ThemedComboBoxStyles.Default;

VB

'Specifies the Visual Style as Metro.
Me.comboBoxAdv1.Style = Syncfusion.Windows.Forms.VisualStyle.Metro
Me.comboBoxAutoComplete1.VisualStyle = Syncfusion.Windows.Forms.Tools.ThemedComboBoxStyles.Metro
Me.comboBoxBase1.Style = Syncfusion.Windows.Forms.VisualStyle.Metro
Me.comboDropDown1.Style = Syncfusion.Windows.Forms.VisualStyle.Metro
Me.multiSelectionComboBox1.ButtonStyle = ButtonAppearance.Metro
Me.multiSelectionComboBox1.UseVisualStyle = True
Me.multiColumnComboBox1.Style = Syncfusion.Windows.Forms.VisualStyle.Metro
Me.fontComboBox1.VisualStyle = Syncfusion.Windows.Forms.Tools.ThemedComboBoxStyles.Metro
'Specifies the Visual Style as Office2007.
Me.comboBoxAdv1.Style = Syncfusion.Windows.Forms.VisualStyle.Office2007
Me.comboBoxAutoComplete1.VisualStyle = Syncfusion.Windows.Forms.Tools.ThemedComboBoxStyles.Office2007
Me.comboBoxBase1.Style = Syncfusion.Windows.Forms.VisualStyle.Office2007
Me.comboDropDown1.Style = Syncfusion.Windows.Forms.VisualStyle.Office2007
Me.multiSelectionComboBox1.ButtonStyle = ButtonAppearance.Office2007
Me.multiSelectionComboBox1.UseVisualStyle = True
Me.multiColumnComboBox1.Style = Syncfusion.Windows.Forms.VisualStyle.Office2007
Me.fontComboBox1.VisualStyle = Syncfusion.Windows.Forms.Tools.ThemedComboBoxStyles.Office2007
'Specifies the Visual Style as Office2010.
Me.comboBoxAdv1.Style = Syncfusion.Windows.Forms.VisualStyle.Office2010
Me.comboBoxAutoComplete1.VisualStyle = Syncfusion.Windows.Forms.Tools.ThemedComboBoxStyles.Office2010
Me.comboBoxBase1.Style = Syncfusion.Windows.Forms.VisualStyle.Office2010
Me.comboDropDown1.Style = Syncfusion.Windows.Forms.VisualStyle.Office2010
Me.multiSelectionComboBox1.ButtonStyle = ButtonAppearance.Office2010
Me.multiSelectionComboBox1.UseVisualStyle = True
Me.multiColumnComboBox1.Style = Syncfusion.Windows.Forms.VisualStyle.Office2010
Me.fontComboBox1.VisualStyle = Syncfusion.Windows.Forms.Tools.ThemedComboBoxStyles.Office2010
'Specifies the Visual Style as Default.
Me.comboBoxAdv1.Style = Syncfusion.Windows.Forms.VisualStyle.Default
Me.comboBoxAutoComplete1.VisualStyle = Syncfusion.Windows.Forms.Tools.ThemedComboBoxStyles.Default
Me.comboBoxBase1.Style = Syncfusion.Windows.Forms.VisualStyle.Default
Me.comboDropDown1.Style = Syncfusion.Windows.Forms.VisualStyle.Default
Me.multiSelectionComboBox1.ButtonStyle = ButtonAppearance.None
Me.multiColumnComboBox1.Style = Syncfusion.Windows.Forms.VisualStyle.Default
Me.fontComboBox1.VisualStyle = Syncfusion.Windows.Forms.Tools.ThemedComboBoxStyles.Default

 

Note:

You can also specify the Visual Styles for all the Syncfusion controls. Refer to the attached sample to specify the Visual Style to the controls.

 

Visual style specified as Metro

Figure 2: Visual Style specified as Metro

Visual style specified as Office2007

Figure 3: Visual Style specified as Office2007

Visual style specified as Office2010

Figure 4: Visual Style specified as Office2010

Visual style specified as default

Figure 5: Visual Style specified as Default

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment