)
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 customize the appearance of the WinForms DateTimePickerAdv?

Platform: WinForms |
Control: DateTimePickerAdv |
Published Date: January 7, 2020 |
Last Revised Date: January 7, 2020

Customize the appearance of DateTimePickerAdv

You can customize the appearance of the DateTimePickerAdv in multiple aspects. The following code example demonstrate the same.

C#

//Sets the backcolor of the DateTimePickerAdv.
this.dateTimePickerAdv1.BackColor = colorPickerButton1.SelectedColor;
//Sets the border color of the DateTimePickerAdv.
this.dateTimePickerAdv1.BorderColor = colorPickerButton2.SelectedColor;
// Sets the fore color of the DateTimePickerAdv.
this.dateTimePickerAdv1.ForeColor = colorPickerButton3.SelectedColor;
// Sets the days’ color of the Month calendar popup.
this.dateTimePickerAdv1.Calendar.DaysColor = colorPickerButton4.SelectedColor;
// Sets the day names’ color of the Month calendar popup.
this.dateTimePickerAdv1.Calendar.DayNamesColor = colorPickerButton5.SelectedColor;
// Sets the Inactive month color of the Month calendar popup.
this.dateTimePickerAdv1.Calendar.InactiveMonthColor = colorPickerButton6.SelectedColor;
// Sets the title back color of the Month calendar popup.
this.dateTimePickerAdv1.CalendarTitleBackColor = colorPickerButton7.SelectedColor;
// Sets the title fore color of the Month calendar popup.
this.dateTimePickerAdv1.CalendarTitleForeColor = colorPickerButton8.SelectedColor;
// Sets the fore color of the Month calendar popup.
this.dateTimePickerAdv1.Calendar.ForeColor = colorPickerButton12.SelectedColor;
// Sets the grid color of the Month calendar popup.
this.dateTimePickerAdv1.Calendar.GridBackColor = colorPickerButton11.SelectedColor;

VB

'Sets the backcolor of the DateTimePickerAdv.
Me.dateTimePickerAdv1.BackColor = colorPickerButton1.SelectedColor
'Sets the border color of the DateTimePickerAdv.
Me.dateTimePickerAdv1.BorderColor = colorPickerButton2.SelectedColor
'Sets the fore color of the DateTimePickerAdv.
Me.dateTimePickerAdv1.ForeColor = colorPickerButton3.SelectedColor
'Sets the days color of the Month calendar popup.
Me.dateTimePickerAdv1.Calendar.DaysColor = colorPickerButton4.SelectedColor
'Sets the day names color of the Month calendar popup.
Me.dateTimePickerAdv1.Calendar.DayNamesColor = colorPickerButton5.SelectedColor
'Sets the Inactive month color of the Month calendar popup.
Me.dateTimePickerAdv1.Calendar.InactiveMonthColor = colorPickerButton6.SelectedColor
'Sets the title back color of the Month calendar popup.
Me.dateTimePickerAdv1.CalendarTitleBackColor = colorPickerButton7.SelectedColor
'Sets the title fore color of the Month calendar popup.
Me.dateTimePickerAdv1.CalendarTitleForeColor = colorPickerButton8.SelectedColor
'Sets the fore color of the Month calendar popup.
Me.dateTimePickerAdv1.Calendar.ForeColor = colorPickerButton12.SelectedColor
'Sets the grid color of the Month calendar popup.
Me.dateTimePickerAdv1.Calendar.GridBackColor = colorPickerButton11.SelectedColor

 

Customize the appearance of DateTimePickerAdv

Figure 1: DateTimePickerAdv appearance

Samples:

C#: http://www.syncfusion.com/downloads/support/directtrac/136015/DateTimePickerAdv_Customization-587652829.zip

VB: http://www.syncfusion.com/downloads/support/directtrac/134875/DateTimePickerAdv_Customization_VB1622132139.zip

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