Previous Document Next Document
Window.Top

Property Top As Long

Member of Window

The Top property returns or sets the top coordinate of a window. This value is measured in screen pixels.

The following code example displays the current top coordinate, sets it to half of its original value, and displays the new value:

Sub Test() 
 MsgBox "The current top coordinate is: " & ActiveWindow.Top 
 ActiveWindow.Top = ActiveWindow.Top / 2 
 MsgBox "The new top coordinate is: " & ActiveWindow.Top 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.