Files
docs-desktop/dotnet-desktop-guide/framework/winforms/controls/display-more-than-one-month-wf-monthcalendar-control.md
T
Andy De George c0ba284473 Initial winforms content migrated (#18)
* Merge winforms framework content to working branch (#14)

* Breadcrumb / TOC / Move net5 to net folder (#15)

* change path from net5 to net

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Add .net 5 winforms placeholder article (#16)

* added some metadata and adjusted net5 placeholder

* corrections

* corrections

* corrections

* Test1

* Swapping landing page vs concept

* fix links

* Fix links

* Fix desc
2020-09-01 16:26:21 -07:00

1.7 KiB

title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
title ms.date dev_langs helpviewer_keywords ms.assetid
Display More than One Month in MonthCalendar Control 03/30/2017
csharp
vb
cpp
calendars [Windows Forms], formatting display
examples [Windows Forms], calendar controls
calendars [Windows Forms], multiple months
MonthCalendar control [Windows Forms], formatting display
d197caa2-38a5-4cb4-acc3-562130c2ace3

How to: Display More than One Month in the Windows Forms MonthCalendar Control

The Windows Forms xref:System.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 xref:System.Windows.Forms.MonthCalendar.CalendarDimensions%2A 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