WindowState Property

Applies To   See Also

Specifies whether a form window is displayed as a maximized, minimized, or normal window at run time. Available at design time and run time.

Syntax

[Object.]WindowState[ = nState]

Settings

nState

The settings for the WindowState property are as follows:

Setting Description
0 Normal
1 Minimized (minimized to an icon). If the main Visual FoxPro window is minimized when Visual FoxPro is exited, the main Visual FoxPro window isn't displayed before exiting. If you application displays a dialog before exiting, be sure to set _SCREEN.WindowState to 0 before displaying the dialog.
2 Maximized (enlarged to fill the screen)