mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-06 16:06:07 +02:00
* 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
1.7 KiB
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 |
|
|
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);