JavaScript Editor js editor     Web development 

Main Page

Moves an object.

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



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

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

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

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


Applies To: CheckBox | ComboBox | CommandButton | CommandGroup | Container Object | Control Object | EditBox | Form | Grid | Image | Label | Line | ListBox | OLE Bound Control | OLE Container Control | OptionButton | OptionGroup | PageFrame | _SCREEN | Shape | Spinner | TextBox | ToolBar

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.

See Also

JavaScript Editor js editor     Web development