Share via


Console.ShowDialog Method (Form, WaitCursor)

 

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

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