Export (0) Print
Expand All
Expand Minimize

WindowType Property

Visual Studio .NET 2003

Specifies how a form set or form behaves when it is shown or run with DO FORM. Available at design time and run time.

Object.WindowType[ = nType]

Property Values

nType
For a form set, the settings for the WindowType property are as follows:
Setting Description
0 Modeless.
1 Modal. No other forms can become active and the menu can be active. All forms in the form set are active.
2 Read. The form set behaves as if it were activated by the READ command. Execution stops on the Show method or DO FORM command. When the Form is deactivated, execution continues. (Included for backward compatibility, and available only for Forms converted from previous versions of FoxPro.)
3 Read Modal. The form set behaves as if it were activated by a READ command's MODAL clause. Program execution stops at the Show method or the DO FORM command. Any forms specified in the WindowList property are available, but other forms and the menu are not available. (Included for backward compatibility, and available only for forms converted from previous versions of FoxPro.)

For a form, the settings for the WindowType property are as follows:

Setting Description
0 Modeless.
1 Modal. No other forms can become active and the menu is inactive. All forms in the form set are active.

Remarks

You cannot change the WindowType setting once the window has been displayed.

The Show method takes a parameter that can override the WindowType setting.

Note   The WindowType setting of a form set overrides the individual WindowType settings of the forms it contains. For example, if the WindowType property for a form set is set to 0, all the forms contained in it are modeless, regardless of their individual WindowType property settings.

See Also

DO FORM | READ | READ EVENTS | Show Method | WindowList Property

Applies To: Form | FormSet | _SCREEN

Show:
© 2014 Microsoft