Articles in this section
Category / Section

How to customize the appearance of WinForms MonthCalendarAdv?

1 min read

Customize the appearance of MonthCalendarAdv

The appearance of MonthCalenderAdv can be customized like Microsoft MonthCalender by using its properties named NoneButtonVisible, CalendarTitleBackColor and CalendarMonthBackground.

C#

/// <summary>
/// Constructor
/// </summary>
public Form1()
{
   InitializeComponent();
   //Disable None Button
   this.dateTimePickerAdv1.NoneButtonVisible = false;
   //Set the CalenderTitleBackColor
   this.dateTimePickerAdv1.CalendarTitleBackColor = Color.White;
   //Set the CalenderMonthBackGround color
   this.dateTimePickerAdv1.CalendarMonthBackground = Color.White;
}

VB

''' <summary>
''' Constructor
''' </summary>
Public Sub New()
   InitializeComponent()
   'Disable None Button
   Me.dateTimePickerAdv1.NoneButtonVisible = False
   'Set the CalenderTitleBackColor
   Me.dateTimePickerAdv1.CalendarTitleBackColor = Color.White
   'Set the CalenderMonthBackGround color
   Me.dateTimePickerAdv1.CalendarMonthBackground = Color.White
End Sub

Screenshot

Customize the appearance of MonthCalendarAdv

Samples:

C#: DateTime Picker - C#

VB: DateTime Picker - 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