Returns the width and height of a MonthView control for a given number of rows and columns.
Syntax
object.ComputeControlSize(Rows, Columns, Width, Height)
The ComputeControlSize method syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
Rows | Sets an integer specifying the number of rows. |
Columns | Sets an integer specifying the number of columns. |
Width | Returns a single-precision number that is the width of the prospective control. |
Height | Returns a single-precision number that is the height of the prospective control. |
Remarks
When the size of the MonthView control changes by resetting the MonthColumns or MonthRows properties, use the ComputeControlSize method to calculate the size of the control before the change, and resize the form accordingly.
To use the ComputeControlSize method, first declare two variables as type Single. Then invoke the method with the variables as the Width and Height arguments.