WindowState Property

The WindowState property returns or sets the state of the main application window, e.g., minimized. Returns a Long.

Syntax

object.WindowState

object.WindowState = WindowState

 

Parameter Type Description
WindowState Long required, grfWindowState

 

Example 1

This example demonstrates how to return the current window state of the application.

Debug.Print GrapherApp.WindowState

Example 2

This example demonstrates how to minimize the current window.

GrapherApp.WindowState(grfWindowStateMinimized)

 

Used by: Application object, AutoWindow object