共用方式為


WindowHelper.ShowModalElement Method (IVsUIElement, IntPtr)

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

Namespace:  Microsoft.Internal.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣告
Public Shared Function ShowModalElement ( _
    element As IVsUIElement, _
    parent As IntPtr _
) As Integer
public static int ShowModalElement(
    IVsUIElement element,
    IntPtr parent
)

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

WindowHelper Class

ShowModalElement Overload

Microsoft.Internal.VisualStudio.PlatformUI Namespace