How to: Display More than One Month in the Windows Forms MonthCalendar Control
The Windows Forms MonthCalendar control can display up to 12 months at a time. By default, the control displays only one month, but you can specify how many months are displayed and how they are arranged within the control. When you change the calendar dimensions, the control is resized, so be sure there is enough room on the form for the new dimensions.
To display multiple months
Set the CalendarDimensions property to the number of months to display horizontally and vertically.
MonthCalendar1.CalendarDimensions = New System.Drawing.Size (3,2)
monthCalendar1.CalendarDimensions = new System.Drawing.Size (3,2);
monthCalendar1->CalendarDimensions = System::Drawing::Size (3,2);
See also
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
.NET Desktop feedback