Articles in this section
Category / Section

How to customize Day name column header section height in WinForms DateTimePicker(DateTimePickerAdv)?

1 min read

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

 

 

 

 

 

 

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied