Share 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 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)

Syntax

'Declaration
Protected Overridable ReadOnly Property EnableModeless As Boolean
'Usage
Dim value As Boolean 

value = Me.EnableModeless
protected virtual bool EnableModeless { get; }
protected:
virtual property bool EnableModeless {
    bool get ();
}
protected 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

DialogBase Members

Microsoft.VisualStudio.Modeling.Shell Namespace