Window.WindowState Property

Project Developer Reference

Returns or sets the state of all project windows (Window object). Can be one of the PjWindowState constants. Read/write Long.

Syntax

expression.WindowState

expression   A variable that represents a Window 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