Share via


IVsUIWin32Element.ShowModal Method

Show the window as a modal dialog box.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assemblies:   Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Function ShowModal ( _
    parent As IntPtr, _
    <OutAttribute> ByRef pDlgResult As Integer _
) As Integer
int ShowModal(
    IntPtr parent,
    out int pDlgResult
)
int ShowModal(
    IntPtr parent, 
    [OutAttribute] int% pDlgResult
)
abstract ShowModal : 
        parent:IntPtr * 
        pDlgResult:int byref -> int
function ShowModal(
    parent : IntPtr, 
    pDlgResult : int
) : int

Parameters

  • parent
    Type: IntPtr

    [in] The HWND of the parent window.

  • pDlgResult
    Type: Int32%

    [out] Location to return the dialog result.

Return Value

Type: Int32
Returns S_OK after the user closes the dialog.

.NET Framework Security

See Also

Reference

IVsUIWin32Element Interface

Microsoft.VisualStudio.Shell.Interop Namespace