共用方式為


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

Return Value

Type: System.Windows.Forms.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