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.
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?

 

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.

C#

//Office2007Style for DateTimePickerAdv

this.dateTimePickerAdv1.Style = VisualStyle.Office2007;

this.dateTimePickerAdv1.Office2007Theme = Office2007Theme.Blue;

 

VB

'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.

C#

//Office2007Style for DomainUpDownExt

this.domainUpDownExt1.VisualStyle = VisualStyle.Office2007;

 this.domainUpDownExt1.ColorScheme = Office2007Theme.Blue;

VB

'Office2007Style for DomainUpDownExt

Me.domainUpDownExt1.VisualStyle = VisualStyle.Office2007

Me.domainUpDownExt1.ColorScheme = Office2007Theme.Blue

Article ID: Published Date: Last Revised Date: Platform: Control:
1696 04/30/2011 07/10/2014 Windows Forms TextBoxExt
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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