WindowState Property

Returns the current window state of a form , Maximized, minimized, or restored (Read-only).

ActiveForm.WindowState = [value]

Where object is an object expression that evaluates to one of the controls in the Applies To list, and value is a value or constant as described in Settings.

Settings

You can use the following settings to check the state of the currently active form.

Constant

(Macros)

Constant

(Scripts)

Value

Description

WinNormal

nlWinNormal

1

The form is displayed in a restored window.

WinMaximized

nlWinMaximized

3

The form is displayed in a maximized window.

WinMinimized

nlWinMinimized

7

The form is displayed in a minimized window.

WinHidden

nlWinHidden

0

The form is hidden.

See Also

MoveSize method

Applies To

Form object


© 2004-2021 looksoftware. All rights reserved.