WindowState Property

Home Page (Objects)OverviewFAQReference

Applies to: Application object, Window object

Gets or sets the state of a window.

Syntax

object.WindowState [=state]

Parameters

object

An expression that evaluates to an Application object or a Window object. When you access the WindowState property of the Application object, you can omit object because the name of the Application object is implied when you access its properties and methods.

state

A Long of type DsWindowState that sets the state of the window. Possible values are:

Remarks

The WindowState property has the type DsWindowState.

Example

The following example maximizes the active window:

ActiveWindow.WindowState = dsWindowStateMaximized