Application.WindowState Property

Project Developer Reference

Returns or sets the state of the main window (Application object). Can be one of the PjWindowState constants. Read/write Long.

Syntax

expression.WindowState

expression   A variable that represents an Application object.

Return Value
PjWindowState

Example
The following example maximizes all project windows.

Visual Basic for Applications
  Sub MaximizeProjectWindows()
    ActiveWindow.WindowState = pjMaximized
End Sub

See Also