[]
Creates and shows a task dialog with a default owner.
public TaskDialogResult Show()
Type | Description |
---|---|
TaskDialogResult | The task dialog result (see also the DialogResult property). |
Creates and shows a task dialog.
public TaskDialogResult Show(IWin32Window owner)
Type | Name | Description |
---|---|---|
IWin32Window | owner | An implementation of IWin32Window that will own the task dialog. |
Type | Description |
---|---|
TaskDialogResult | The task dialog result (see also the DialogResult property). |
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.
Creates and shows a task dialog.
public TaskDialogResult Show(bool dialogOwnedByActiveWindow)
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. |
Type | Description |
---|---|
TaskDialogResult | The task dialog result (see also the DialogResult property). |
You can pass False to this method to show the task dialog as an autonomous window.