In a WinForms (3.5) application there is form with a monthCalendar control.
The calendar control has a calendarDimension of 3 columns by 1 row. This means that it currently shows June, July, August of 2010.
Is it possible to have the calendar to show April, May, June of 2010 instead? My dataset doesn't have any future dates so the date selection will be for current or older dates.
You can use the following line of code to set the MonthCalendar
's MaxDate
property to current date in the form's load event.
monthCalendar1.MaxDate = DateTime.Now;