Move Method

Applies To   See Also

Moves an object.

Syntax

Object.Move (nLeft [, nTop [, nWidth [, nHeight]]])

Arguments

nLeft

Specifies the horizontal coordinate for the left edge of the object. nLeft is a single-precision value.

nTop

Specifies the vertical coordinate for the top edge of the object. nTop is a single-precision value.

nWidth

Specifies the new width of the object. nWidth is a single-precision value.

nHeight

Specifies the new height of the object. nHeight is a single-precision value.

Remarks

Only the nLeft argument is required. However, to include any other arguments, you must also include all arguments in the syntax before the argument you want to include. For example, you cannot specify nWidth without specifying nLeft and nTop. Any trailing arguments that are unspecified remain unchanged.

Moving a Form on the screen or moving a control on a form is always relative to the origin (0,0), which is the upper-left corner. When moving controls in a container, the coordinate system of the container is used.