Top

This property returns and sets the distance between the internal top edge of an object and the top edge of its container.

Syntax

object.Top [= value]

Parameters

object
Object expression that evaluates to a Form object or Timer control.
value
Numeric expression that specifies distance.

Remarks

For a form, a Top property is always expressed in twips. For a control, Top is measured in units derived from the coordinate system of its container. The values for Top change as an object is moved by a user or by code.

For a Timer control, this property is unavailable at run time.

You can specify a single-precision number for the Top property.

Use the Left, Top, Height, and Width properties for operations based on an object's external dimensions, such as moving or resizing. Use the ScaleLeft, ScaleTop, ScaleHeight, and ScaleWidth properties for operations based on an object's internal dimensions, such as drawing or moving objects that are contained within the object. The scale-related properties apply only to Form objects.