property Calendar.IntegralWidth as Long
Retrieves the width of the control to fit the MaxMonthX months in the client area.

TypeDescription
Long A long expression that indicates the width in pixels that control requires in order to display a number of MaxMonthX months in the client area.

Use the MaxMonthX property to specify the maximum number of months displayed in the client area. Use the IntegralHeight property to retrieve the required height for the control to fit a number of MaxMonthY 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