Top (ActiveX)

The Left property returns or sets the distance between the internal left edge of an object and the left edge of its container. The Top property returns or sets the distance between the internal top edge of an object and the top edge of its container.

Syntax

object.Left [= value]

object.Top [= value]

The parts of the Left and Top property syntaxes are described in the following table.

Part Description
object An object expression that evaluates to an object.
value A numeric expression specifying distance.

Remarks

For a control the Left and Top properties are always measured in units depending on the coordinate system of its container. The values for these properties change as the object is moved by the user or by code.

For either property, you can specify a single-precision number.

Use the Left, Top, Height, and Width properties for operations based on an object's external dimensions, such as moving or resizing.