IVsUIShell.EnableModeless Method (Int32)

 

Enables or disables a frame's modeless dialog box.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

abstract EnableModeless : 
        fEnable:int -> int

Parameters

fEnable
Type: System.Int32

[in] true when exiting a modal state. false when entering a modal state.

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsshell.idl:

HRESULT IVsUIShell::EnableModeless(
   [in] BOOL fEnable
);

This method is used by any VSPackage implementer that needs to display a modal dialog and that is not already involved in an in-place relationship (for example, IVsWindowPane implementers or global command handlers).

This method is identical to the EnableModeless method.

Return to top
Show: