WindowState Property

Purpose

Returns or sets a value indicating the visual state of a form window at run time.

Syntax

Form.WindowState [= value]

value:iexp

Description

value is a constant (an integer) specifying the state of the object. The Form can be minimized, maximized, or normal. The constants are:

basNormal = 0, when set is equal to Form.Restore

basMinimized = 1, when set is equal to Form.Minimize

basMaximized = 2, when set is equal to Form.Maximize

When WindowState is set, the state of the window is immediately updated.

Example

OpenW 1 : AutoRedraw = 1

Me.WindowState = basMaximized

Print Win_1.WindowState

See Also

Form, Iconic?, Zoomed?

{Created by Sjouke Hamstra; Last updated: 25/10/2014 by James Gaite}