TaskDialogSelectedButtonIndex Property

After the dialog is closed, gets the index of the clicked custom button defined in the Buttons collection that closed the TaskDialog. If the TaskDialog has been closed either programmatically or by a standard button, or is not closed yet, this property returns -1.

Definition

Namespace: KGySoft.WinForms.Components
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public int SelectedButtonIndex { get; }

Property Value

Int32

See Also