Height Property

Returns or sets the height of the main window (Application object) or a project window (Window object) in points. Read/write Long.

Remarks

A window changes its height by moving its bottom edge, leaving the top edge unaffected.

Example

The following example places the main window in the lower half of the screen.

Sub PlaceProjectInLowerScreenHalf()

    Dim WindowWidth As Double
        
    Application.WindowState = pjMaximized
    WindowWidth = Application.Width        'Remember the width when maximized.
        
    Application.Height = Application.Height / 2
    Application.Top = Application.Height
   
     'Make sure the window uses all the available width.
    If Application.Width < WindowWidth Then
        Application.Width = WindowWidth
        Application.Left = 0
    End If

End Sub

Applies to | Application Object