Type | Description | |||
Long | A long expression that indicates the height in pixels that control requires in order to display a number of MaxMonthY months in the client area. |
Use the MaxMonthY property to specify the maximum number of months displayed in the client area. Use the IntegralWidth property to retrieve the required width for the control to fit a number of MaxMonthX months in the client area. The following sample changes the control's size to let control displays 2 x 2 months in the client area:
With Calendar1 .MaxMonthX = 2 .MaxMonthY = 2 .Width = Screen.TwipsPerPixelX * .IntegralWidth .Height = Screen.TwipsPerPixelY * .IntegralHeight End With