WindowHelper::ShowModalElement Method (IVsUIElement, IntPtr)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Displays the UI element as a modal dialog, using the specified Win32 window as the parent.

Namespace:  Microsoft.Internal.VisualStudio.PlatformUI
Assemblies:   Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

public:
static int ShowModalElement(
	IVsUIElement^ element, 
	IntPtr parent
)

Parameters

element
Type: Microsoft.VisualStudio.Shell.Interop::IVsUIElement

The element to display as a modal dialog.

parent
Type: System::IntPtr

The parent window handle.

Return Value

Type: System::Int32
The Win32 button ID, or 0 for unknown.

Show: