OldLeft, OldTop Properties

Applies To

CheckBox control, ComboBox control, CommandButton control, Image control, Label control, ListBox control, MultiPage control, OptionButton control, ScrollBar control, SpinButton control, TabStrip control, TextBox control, ToggleButton control.

Description

Returns the distance, in points, between the previous position of a control and the left or top edge of the form that contains it.

Syntax

object.OldLeft

object.OldTop

The OldLeft and OldTop property syntaxes have these parts:

Part

Description

object

Required. A valid object.


Remarks

OldLeft and OldTop are read-only.

The OldLeft and OldTop properties are automatically updated when you move or size a control. If you move a control, the Left and Top properties store the new distance from the control to the left edge of its container and OldLeft and OldTop store the previous value of Left.

OldLeft and OldTop are valid only in the Layout event.

See Also

Layout event, LayoutEffect property, Left, Top properties, OldHeight, OldWidth properties.

Example

See the OldHeight, OldWidth properties example.