Top Property (Window object)

Read-only. A Long type property. Returns the Y-coordinate of the top left corner of the window.

Applies to: Window object

Syntax

[[Let] topRet = ] object.Top

The Top property syntax has these parts:

Part Description
object Required. An expression that returns a Window object.
topRet Optional. A Long type variable.

Remarks

Note, that the coordinates of the window position are specified in screen pixels, and the coordinate origin is in the left top corner of the parent window frame. To change the dimensions and position of the window, use the SetWindowRect method.

Example

.......

 

See Also

Left property, Height property, Width property, SetWindowRect method