Top (ActiveX)

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 control.
value
Numeric expression that specifies distance.

Remarks

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

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.