Share via


WindowState Property

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]

Property Values

  • 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 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.
    2 Maximized (enlarged to fill the screen)

See Also

Height Property | Left Property | Top Property | Width Property

Applies To: Form | _SCREEN