Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Shows a Form modal to the MMC console window with an optional delay to show the wait cursor.
Namespace:   Microsoft.ManagementConsole.Advanced
Assembly:  Microsoft.ManagementConsole (in Microsoft.ManagementConsole.dll)
Syntax
public DialogResult ShowDialog(
    Form form,
    WaitCursor waitCursor
)
public:
DialogResult ShowDialog(
    Form^ form,
    WaitCursor^ waitCursor
)
member ShowDialog : 
        form:Form *
        waitCursor:WaitCursor -> DialogResult
Public Function ShowDialog (
    form As Form,
    waitCursor As WaitCursor
) As DialogResult
Parameters
- form 
 Type: System.Windows.Forms.Form- The form modal. 
- waitCursor 
 Type: Microsoft.ManagementConsole.Advanced.WaitCursor- The delay for the wait cursor. 
Return Value
Type: System.Windows.Forms.DialogResult
System.Windows.Forms.DialogResult.OK if the user clicks OK in the dialog box; otherwise, System.Windows.Forms.DialogResult.Cancel.
See Also
ShowDialog Overload
Console Class
Microsoft.ManagementConsole.Advanced Namespace
DialogResult
Return to top