Specifies whether a form window is displayed as a maximized, minimized, or normal window at run time. Available at design time and run time.
[Object.]WindowState[ = nState]
The settings for the WindowState property are as follows:
Minimized (minimized to an icon). If the main Visual FoxPro window is minimized when you exit Visual FoxPro, the main Visual FoxPro window will not display before exiting. If your application displays a dialog before exiting, be sure to set _SCREEN.WindowState to 0 before displaying the dialog.
Maximized (enlarged to fill the screen)