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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set Office2007 style and color schemes for the Editor controls?

Platform: WinForms |
Control: TextBoxExt

Office2007 style and color schemes

The Editor Controls that are categorized as CalendarDateTime controls (DateTimePickerAdv, MonthCalendarAdv), ComboBox Controls (ComboBoxAdv, ComboDropDown), SelectOption controls (RadioButtonAdv, CheckBoxAdv) etc., can have their visualstyle set as Office2007 using the Style property. Also, Office2007ColorScheme can be set by using the Office2007Theme property. Refer to the below given code snippet.


//Office2007Style for DateTimePickerAdv
this.dateTimePickerAdv1.Style = VisualStyle.Office2007;
this.dateTimePickerAdv1.Office2007Theme = Office2007Theme.Blue;


'Office2007Style for DateTimePickerAdv
Me.dateTimePickerAdv1.Style = VisualStyle.Office2007
Me.dateTimePickerAdv1.Office2007Theme = Office2007Theme.Blue

Other controls such as NumericUpDownExt, domainUpDownExt and so on can have their VisualStyle property set as Office2007. The Office2007ColorScheme for these controls can be set using the ColorScheme property.


//Office2007Style for DomainUpDownExt
this.domainUpDownExt1.VisualStyle = VisualStyle.Office2007;
 this.domainUpDownExt1.ColorScheme = Office2007Theme.Blue;


'Office2007Style for DomainUpDownExt
Me.domainUpDownExt1.VisualStyle = VisualStyle.Office2007
Me.domainUpDownExt1.ColorScheme = Office2007Theme.Blue

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
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