For a form or control
object.Move( [Left [, Top [, Width [, Height [, Layout]]]]])
The Move method syntax has these parts:
Part |
Description |
object |
Required. A valid object name. |
Left |
Optional. Single-precision value, in points, indicating the horizontal coordinate for the left edge of the object. |
Top |
Optional. Single-precision value, in points, that specifies the vertical coordinate for the top edge of the object.
point
A point is 1/72 inch. Font sizes are usually measured in points.
|
Const OldSubmitTop as Single = nnn
Const OldSubmitLeft As Single = nnn
'
'
'Move to new Position
Submitbut.Move(Top:=OldSubmitTop + 144, Left:=OldSubmitLeft + 90)
'144 = 2", 90 = 1 1/4"
'Move to original position
Submitbut.Move(Top:=OldSubmitTop, Left:=OldSubmitLeft)