IDialogVisualizerService.ShowDialog Method (Form)
Namespace: Microsoft.VisualStudio.DebuggerVisualizers
Assembly: Microsoft.VisualStudio.DebuggerVisualizers (in Microsoft.VisualStudio.DebuggerVisualizers.dll)
Syntax
'Declaration
Function ShowDialog ( _
form As Form _
) As DialogResult
DialogResult ShowDialog(
Form form
)
DialogResult ShowDialog(
Form^ form
)
abstract ShowDialog :
form:Form -> DialogResult
function ShowDialog(
form : Form
) : DialogResult
Parameters
form
Type: FormAny Windows Form object derived from System.Windows.Forms.Form.
Return Value
Type: DialogResult
Displays a Windows Form.
Remarks
Displays a Windows Forms.
Examples
public class DebuggerSide : DialogDebuggerVisualizer
{
override protected void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
{
Form myForm = new Form();
// Add controls, etc. to your form
windowService.ShowDialog(myForm);
}
// 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.