System.Windows.Forms.MonthCalendar.SetCalendarDimensions Method

Sets the number of columns and rows of months to display.

Syntax

public void SetCalendarDimensions (int x, int y)

Parameters

x
The number of columns.
y
The number of rows.

Remarks

The maximum number of months that you can display is 12, restricted to one calendar year. The product of the x and y parameters should be 12 or less. For values of x and y that have a product of more than 12, the greater of the x and y values will be iteratively reduced until the product is 12 or less.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0