Skip to content

Latest commit

 

History

History
54 lines (33 loc) · 1.16 KB

Project.Application.Height.md

File metadata and controls

54 lines (33 loc) · 1.16 KB
title ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.Height property (Project)
project-server
Project.Application.Height
e980a85d-218c-b82d-1043-9670cab23560
06/08/2017
medium

Application.Height property (Project)

Gets or sets the height of the main window in points. Read/write Long.

Syntax

expression.Height

expression A variable that represents an Application object.

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 
 
 'Ensure that the window uses all the available width. 
 If Application.Width < WindowWidth Then 
 Application.Width = WindowWidth 
 Application.Left = 0 
 End If 
 
End Sub

[!includeSupport and feedback]