NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Form.Modal

Gets a value indicating whether this form is displayed modally.

[Visual Basic]
Public ReadOnly Property Modal As Boolean
[C#]
public bool Modal {get;}
[C++]
public: __property bool get_Modal();
[JScript]
public function get Modal() : Boolean;

Property Value

true if the form is displayed modally; otherwise false.

Remarks

When a form is displayed modally, no input (keyboard or mouse click) can occur except to objects on the modal form. The program must hide or close a modal form (usually in response to some user action) before input to another form can occur. Forms that are displayed modally are typically used as dialog boxes in an application.

You can use this property to determine if a form that you have obtained from a method or property has been displayed modally.

To display a form modally use the ShowDialog method.

See Also

Form Class | Form Members | System.WinForms Namespace | System.WinForms.ShowDialog