Move

This method moves a Form object or control.

Syntax

object.Move left, [top], [width], [height]

Parameters

object
Optional. Object expression that evaluates to a Form or control. If object is omitted, the Form with the focus is assumed to be object.
left
Required. Single-precision value that indicates the horizontal coordinate (x-axis) for the left edge of object.
top
Required. Single-precision value that indicates the vertical coordinate (y-axis) for the top edge of object.
width
Required. Single-precision value that indicates the new width of object.
height
Required. Single-precision value that indicates the new height of object.

Return Value

None.

Remarks

For forms and controls in a Frame control, the coordinate system is always in twips. Moving a form on the screen or moving a control in a Frame is always relative to the origin (0,0), which is the upper-left corner. When moving a control on a Form object or in a PictureBox, the coordinate system of the container object is used. The coordinate system or unit of measure is set with the ScaleMode property at design time. You can change the coordinate system at run time with the Scale method.