Share via


IDialogVisualizerService.ShowDialog Method (Control)

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

Syntax

'Declaration
Function ShowDialog ( _
    control As Control _
) As DialogResult
DialogResult ShowDialog(
    Control control
)
DialogResult ShowDialog(
    Control^ control
)
abstract ShowDialog : 
        control:Control -> DialogResult
function ShowDialog(
    control : Control
) : DialogResult

Parameters

  • control
    Type: Control

    Any control derived from System.Windows.Forms.Control.

Return Value

Type: DialogResult

Remarks

Displays a Windows Forms control.

Examples

public class DebuggerSide : DialogDebuggerVisualizer
{
   override protected void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
   {
      Control myControl = new Control();
      windowService.ShowDialog(myControl);

   }
   // Other class methods ommitted for clarity.
}

.NET Framework Security

See Also

Reference

IDialogVisualizerService Interface

ShowDialog Overload

Microsoft.VisualStudio.DebuggerVisualizers Namespace