Table of contents
TOC
Collapse the table of content
Expand the table of content

Move Method

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Moves a form or control, or moves all the controls in the Controls collection. Syntax For a form or control object. Move( [ Left [, Top [, Width [, Height [, Layout ]]]]] ) For the Controls collection object. Move( X, Y ) The Move method syntax has these parts:

PartDescription
objectRequired. A valid object name.
LeftOptional. Single-precision value, in points, indicating the horizontal coordinate for the left edge of the object.
TopOptional. Single-precision value, in points, that specifies the vertical coordinate for the top edge of the object.
WidthOptional. Single-precision value, in points, indicating the width of the object.
HeightOptional. Single-precision value, in points, indicating the height of the object.
LayoutOptional. A Boolean value indicating whether the Layout event is initiated for the control's parent following this move. False is the default value.
X, YRequired. Single-precision value, in points, that specifies the change from the current horizontal and vertical position for each control in the Controls collection.

Settings The maximum and minimum values for the Left, Top, Width, Height, X, and Y arguments vary from one application to another. Remarks For a form or control, you can move a selection to a specific location relative to the edges of the form that contains the selection. You can use named arguments, or you can enter the arguments by position. If you use named arguments, you can list the arguments in any order. If not, you must enter the arguments in the order shown, using commas to indicate the relative position of arguments you do not specify. Any unspecified arguments remain unchanged. For the Controls collection, you can move all the controls in this collection a specific distance from their current positions on a form, Frame, or Page.

© 2018 Microsoft