Measured from the center of the control's border so that controls with different border widths align correctly. These properties use the scale units of a control's container.
object.Height [= number]
object.Width [= number]
The parts of the Height and Width property syntaxes are described in the following table.
Part | Description |
---|---|
object | An object expression that evaluates to an object. |
number | A numeric expression specifying the dimensions of an object, as described in Settings. |
Measurements are calculated as follows:
For Form and Screen objects, these properties are always measured in twips. For a form or control, the values for these properties change as the object is sized by the user or by your code. Maximum limits of these properties for all objects are system-dependent.
Use the Height, Width, Left, and Top properties for operations or calculations based on an object's total area, such as sizing or moving the object. Use the ScaleLeft, ScaleTop, ScaleHeight, and ScaleWidth properties for operations or calculations based on an object's internal area, such as drawing or moving objects within another object.
The Height property cannot be changed for the DriveListBox control or for the ComboBox control, whose Style property setting is 0 (Dropdown Combo) or 2 (Dropdown List).