Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IDialogVisualizerService.ShowDialog Method (CommonDialog)

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

DialogResult ShowDialog(
	CommonDialog dialog
)

Parameters

dialog
Type: System.Windows.Forms.CommonDialog

Any dialog derived from System.Windows.Forms.CommonDialog.

Displays any of the Common Dialogs: System.Windows.Forms.ColorDialog, FileDialog, FolderBrowserDialog, FontDialog, PageSetupDialog, or System.Windows.Forms.PrintDialog.

public class DebuggerSide : DialogDebuggerVisualizer
{
   override protected void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
   {
      ColorDialog myDialog = new ColorDialog();
      windowService.ShowDialog(myDialog);
   }
   // Other class methods ommitted for clarity.
}

Show:
© 2015 Microsoft