TaskDialogShow(IntPtr, Int32, Int32, Boolean) Method

Shows the TaskDialog using the current configuration.

Definition

Namespace: KGySoft.WinForms.Components
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public TaskDialogResult Show(
	IntPtr owner,
	out int? customButtonIndex,
	out int? radioButtonIndex,
	out bool? verificationTextChecked
)

Parameters

owner  IntPtr
The handle of the owner window. If IntPtr.Zero, the dialog is shown as a non-modal window.
customButtonIndex  Int32
When this method returns, contains the index of the clicked custom button specified in Buttons collection if the button closed the dialog.

Its value is stored also in the SelectedButtonIndex property.

radioButtonIndex  Int32
When this method returns, contains the index of the selected radio button specified in RadioButtons collection.

Its value is stored also in the SelectedRadioButtonIndex property.

verificationTextChecked  Boolean
When this method returns, contains whether the verification checkbox was checked when the dialog was closed.

Its value is stored also in the CheckBoxChecked property.

Return Value

TaskDialogResult
A TaskDialogResult value that indicates one of the pressed standard buttons specified by StandardButtons property. If the return value is None, then the dialog might have been closed by a custom button, which can be identified by SelectedButtonIndex. The result is stored also in the DialogResult property.

See Also