TaskDialogShow(IWin32Window, 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(
	IWin32Window? owner,
	out int? customButtonIndex,
	out int? radioButtonIndex,
	out bool? verificationTextChecked
)

Parameters

owner  IWin32Window
The owner of the dialog. If , 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
Returns the index of the selected radio button specified in RadioButtons collection.

Its value is stored also in the SelectedRadioButtonIndex property.

verificationTextChecked  Boolean
Returns whether 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