DialogWindow.ShowModal Method

Finds the parent/owner of the dialog from the Visual Studio shell and display the dialog Sets the shell in modal state while the dialog is shown, and centers correctly the dialog in the parent window.

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

Syntax

声明
Public Function ShowModal As Nullable(Of Boolean)
用法
Dim instance As DialogWindow
Dim returnValue As Nullable(Of Boolean)

returnValue = instance.ShowModal()
public Nullable<bool> ShowModal()
public:
Nullable<bool> ShowModal()
member ShowModal : unit -> Nullable<bool> 
public function ShowModal() : Nullable<boolean>

Return Value

Type: System.Nullable<Boolean>

Remarks

If the dialog is parented to a WPF window, ShowDialog() can also be used to display it, but before doing so one will have to initialize correctly the dialog Owner and WindowStartupLocation.

.NET Framework Security

See Also

Reference

DialogWindow Class

DialogWindow Members

Microsoft.VisualStudio.PlatformUI Namespace