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: ControlAny 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.