Delen via


DialogBase.EnableModeless Property

Verifies whether a dialog box for a form is modeless.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

Syntax

'Declaration
Protected Overridable ReadOnly Property EnableModeless As Boolean
protected virtual bool EnableModeless { get; }
protected:
virtual property bool EnableModeless {
    bool get ();
}
abstract EnableModeless : bool with get 
override EnableModeless : bool with get
function get EnableModeless () : boolean

Property Value

Type: System.Boolean
true if the dialog box is modeless; otherwise, false.

Remarks

By default, the modeless property is set to form modal.

This property is used with CreateParams, which is called before the constructor.

When a modeless dialog box is assigned to a form, a user can open another form without closing the dialog box.

.NET Framework Security

See Also

Reference

DialogBase Class

Microsoft.VisualStudio.Modeling.Shell Namespace