[]
        
(Showing Draft Content)

C1.Win.C1Win7Pack.C1TaskDialog.Show

Show Method

Show()

Creates and shows a task dialog with a default owner.

Declaration
public TaskDialogResult Show()
Returns
Type Description
TaskDialogResult

The task dialog result (see also the DialogResult property).

Show(IWin32Window)

Creates and shows a task dialog.

Declaration
public TaskDialogResult Show(IWin32Window owner)
Parameters
Type Name Description
IWin32Window owner

An implementation of IWin32Window that will own the task dialog.

Returns
Type Description
TaskDialogResult

The task dialog result (see also the DialogResult property).

Remarks

You can use the owner parameter to specify a particular object, which implements the IWin32Window interface, that will serve as the dialog box's top-level window and owner. A task dialog is a modal dialog box, which means no input (keyboard or mouse click) can occur except to objects on the modal form. The program must hide or close a modal form (typically in response to some user action) before input to another form can occur.

Show(bool)

Creates and shows a task dialog.

Declaration
public TaskDialogResult Show(bool dialogOwnedByActiveWindow)
Parameters
Type Name Description
bool dialogOwnedByActiveWindow

If True, the active window attached to the calling thread's message queue will be the owner for the task dialog.

Returns
Type Description
TaskDialogResult

The task dialog result (see also the DialogResult property).

Remarks

You can pass False to this method to show the task dialog as an autonomous window.