)
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 Day name column header section height in WinForms DateTimePicker(DateTimePickerAdv)?

Platform: WinForms |
Control: DateTimePickerAdv |
Published Date: April 13, 2016 |
Last Revised Date: November 15, 2019
Tags: datetime

Column header height

In DateTimePickerAdv, it is possible to customize the Day name column header height. This can be achieved by using its property named “DayNamesHeight”.

 

Following code examples demonstrates the same.

C#

// To set the height of the day names in calender of the DateTimePickerAdv
            this.dateTimePickerAdv1.Calendar.DayNamesHeight = 15;

 

VB

'To set the height of the day names in calender of the DateTimePickerAdv
            Me.dateTimePickerAdv1.Calendar.DayNamesHeight = 15 

                          

Set the height of day names in calendar of DateTimePicker

Figure 1. DateTimePickerAdv when DayNamesHeight=15 with image.

 

Set the height of day names in calendar of DateTimePicker

Figure 2. DateTimePickerAdv when DayNamesHeight=40 with image.

 

 

Sample Links:

C#: How to customize the header height of the Calendar C#

VB: How to customize the header height of the Calendar 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