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
Figure 1. DateTimePickerAdv when DayNamesHeight=15 with image.
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