Sets the size and position of the window.
Applies to: Window object
object.SetWindowRect ( left, top, width, height ) |
The SetWindowRect method syntax has these parts:
Part | Description |
object | Required. An expression, that returns an instance of the Window object. |
left |
Required Long. The x-coordinate of the left upper corner of the window. |
top | Required Long. The y-coordinate of the left upper corner of the window. |
width |
Required Long. The distance from the left side to the right side of the window. |
height | Required Long. The distance from the top side to the bottom side of the window. |
Note, that the size and position of the window are measured in screen pixels, and the coordinate origin is located in the left top corner of the parent window frame. Use the SetWindowRect to change the size and position of the window. To get the current size and position of the window, use the Left, Top, Height and Width properties.
See Also |
Left property, Top property, Height property, Width property |