다음을 통해 공유


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.set_CalendarDimensions(new System.Drawing.Size (3,2));
    
    monthCalendar1->CalendarDimensions = System::Drawing::Size (3,2);
    

See Also

Tasks

How to: Select a Range of Dates in the Windows Forms MonthCalendar Control
How to: Change the Windows Forms MonthCalendar Control's Appearance

Other Resources

MonthCalendar Control (Windows Forms)