Move Method

Moves or sizes an object.

Syntax

Object.Move ( [fLeft] [,fTop] [,fWidth] [,fHeight] )

The Move method syntax has the following parts:

 

Name

Type

Description

Object

A control or the AForm

A control or AForm object

fLeft

Val Variant

An integer specifying the distance between the internal left edge of an object and the left edge of its container.

fTop

Val Variant

An integer specifying the distance between the internal top edge of an object and the top edge of its container.

fWidth

Val Variant

An integer specifying the width of the object.

fHeight

Val Variant

An integer specifying the height of the object.

Comments

If the fLeft and fTop are omitted, the object will not be moved. If the fWidth and fHeight are omitted, the object will not be resized.

Example

The following example will move the button control to 5 units (of the ScaleMode property of the container) from the left edge of the container, 10 units from the top edge of the container, and to a width of 200 units and height of 300 units:

btn1.Move(5,10,200,300)

Applies to

Applies to all controls and the AForm.

See Also

Height, Left, Refresh, ScaleHeight, ScaleLeft, ScaleMode, ScaleTop, ScaleWidth, Top, Width, ZOrder