Height Property

Top  Previous  Next

Specifies the height of a control on the screen.

Syntax

Object.Height = nHeight

Parameters

nHeight

Specifies the height of the control in pixel.

Compatibility

Windows Mobile: The height property cannot be changed for a number of controls. The following table explains the effect for each control affected.

 

Control

Limitation

TextBox

The height of a TextBox depends on the font assigned to the textbox. Changing the FontName or the FontSize properties also changes the height of a TextBox control. The height is always sufficient to show exactly one line of text. Changing the Height property has no effect on the TextBox' dimensions.