Top Property [Application, Window]

 

The Top property returns or sets the coordinate for the top edge of the window. Returns a long.

 

Syntax

object.Top

object.Top = newVal

 

Parameter

Type

Description

NewVal

Long

required; in pixels

 

Example 1

This example demonstrates how to return the distance between the top of the application window and the top of the desktop window in pixels.

 

Debug.Print mvApp.Top

 

Example 2

This example demonstrates how to position the top of the application window 100 pixels from the top of the desktop window.

 

mvApp.Top = 100

 

Used by: Application object, Window object