Share via


IDialogVisualizerService.ShowDialog Method (CommonDialog)

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

Syntax

'Declaration
Function ShowDialog ( _
    dialog As CommonDialog _
) As DialogResult
DialogResult ShowDialog(
    CommonDialog dialog
)
DialogResult ShowDialog(
    CommonDialog^ dialog
)
abstract ShowDialog : 
        dialog:CommonDialog -> DialogResult
function ShowDialog(
    dialog : CommonDialog
) : DialogResult

Parameters

Return Value

Type: System.Windows.Forms.DialogResult

Remarks

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

Examples

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.
}

.NET Framework Security

See Also

Reference

IDialogVisualizerService Interface

ShowDialog Overload

Microsoft.VisualStudio.DebuggerVisualizers Namespace