Calendar Control

  • Thread starter Thread starter David
  • Start date Start date
D

David

Using the calendar control, how do I set my calendar to start at 2005
instead of 2007 at runtime?
 
Put the following code in the Form_Load method of the form that the calendar
control is on.

MonthCalendar1.SelectionStart = new date(2005,1,1)
MonthCalendar1.SelectionEnd = new date(2005,1,1)
 
Put the following code in the Form_Load method of the form that the
calendar control is on.

MonthCalendar1.SelectionStart = new date(2005,1,1)
MonthCalendar1.SelectionEnd = new date(2005,1,1)

Thanks
 
Back
Top