SingleMonthSize Property

MonthCalendar.SingleMonthSize Property

Gets the minimum size to display one month of the calendar.

[Visual Basic]
Public ReadOnly Property SingleMonthSize As Size
public Size SingleMonthSize {get;}
public: __property Size get_SingleMonthSize();
public function get SingleMonthSize() : Size;

Property Value

The size, in pixels, necessary to fully display one month in the calendar.


Exception Type Condition
InvalidOperationException The dimensions cannot be retrieved.


The size information is presented in the form of Width and Height members, representing the minimum width and height required to display one month in the control. The minimum required window size for a month calendar control depends on the currently selected font.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

MonthCalendar Class | MonthCalendar Members | System.Windows.Forms Namespace | SetCalendarDimensions | DefaultSize

© 2016 Microsoft