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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top