Height

This property returns and sets the height of controls.

Syntax

object.Height [= number]

Parameters

object
Object expression that evaluates to a control, Screen object, or Form object.
number
Numeric expression that specifies the dimensions of an object. Measurements are calculated as follows:
Form
The external height of the form, including the borders and title bar.
Control
The height of a control, measured from the center of the control's border so that controls with different border widths align correctly. This property uses the scale units of a control's container.
Screen
The height of the screen. Unavailable at design time and read-only at run time.

Remarks

The Height property is measured from the center of the control's border so that controls with different border widths align correctly. The property uses the scale units of a control’s container.

For Form and Screen objects, this property is always measured in twips. For a form or control, the values for this property changes as the object is sized by a user or by your code. Maximum limits of this property for all objects is 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 (drop-down combo box) or 2 (drop-down list box).