)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Platform: WinForms |
Control: Tools |
Published Date: August 25, 2015 |
Last Revised Date: February 4, 2020

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

Samples:

C#: VisualStyle_C#

VB: VisualStyle_VB

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon