Skip to content

AutoSize Property

Description

Gets/sets whether the month items in the MonthCalendar control are automatically sized to fit within the size of the control.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property AutoSize() As Boolean

Remarks

When AutoSize is False, the MonthCalendar control will automatically determine how many month items can be displayed in the control based on the current width and height of the control. The MonthCalendar will fit as many month items into the control (up to 12). This means that as the MonthCalendar is resized, more or fewer month items are added to the control, while the month items remain the same width/height.

When AutoSize is True, the MonthCalendar control will use the MonthColumns and MonthRows properties to determine how many month items to draw in the control. When the MonthCalendar control is resized, no new month items will be added; instead, the control will continue to show the same number of months.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.