NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IWinFormsEditorService.ShowDialog

Shows the given dialog box.

[Visual Basic]
Function ShowDialog( _
   ByVal dialog As Form _
) As DialogResult
[C#]
DialogResult ShowDialog(
   Form dialog
);
[C++]
DialogResult ShowDialog(
   Form* dialog
) = 0;
[JScript]
function ShowDialog(
   dialog : Form
) : DialogResult;

Parameters

dialog
The Form to show as a dialog box.

Return Value

One of the DialogResult values.

Remarks

You should always use this method instead of showing the dialog directly. This method will properly position the dialog and provide it a dialog owner.

See Also

IWinFormsEditorService Interface | IWinFormsEditorService Members | System.WinForms.Design Namespace | DialogResult