Returns or sets a value indicating the visual state of a form window at run time.
Form.WindowState [= value]
value:iexp
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.
OpenW 1 : AutoRedraw = 1
Me.WindowState = basMaximized
Print Win_1.WindowState
{Created by Sjouke Hamstra; Last updated: 25/10/2014 by James Gaite}