DialogContainerWithToolbar.ShowDialog Method

Shows a dialog.

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

Syntax

'宣言
Public Function ShowDialog As DialogResult
'使用
Dim instance As DialogContainerWithToolbar
Dim returnValue As DialogResult

returnValue = instance.ShowDialog()
public DialogResult ShowDialog()
public:
DialogResult ShowDialog()
public function ShowDialog() : DialogResult

Return Value

Type: System.Windows.Forms.DialogResult

DialogResult.

Remarks

To show a dialog box and process messages from it, this method performs the following actions:

  • Gets the site from the private subclass, ShowDialogContainer.

  • Captures messages that originate in the dialog box by calling AddMessageFilter.

  • Removes the message filter by calling RemoveMessageFilter.

Permissions

See Also

Reference

DialogContainerWithToolbar Class

DialogContainerWithToolbar Members

ShowDialog Overload

Microsoft.VisualStudio.Shell Namespace