DialogResult Enum
Specifies identifiers to indicate the return value of a dialog box.
public enum DialogResultRemarks
This enumeration mirrors the full set of dialog box return values for familiarity, but OpenFolderDialog.ShowDialog only ever returns DialogResult.OK, DialogResult.Cancel, or DialogResult.Abort. The remaining values are never produced by this library, so a switch over them does not need arms for DialogResult.None, DialogResult.Retry, DialogResult.Ignore, DialogResult.Yes, or DialogResult.No.
Fields
| Name | Value | Description |
|---|---|---|
None | 0 | Nothing is returned from the dialog box. This means that the modal dialog continues running. |
OK | 1 | The dialog box return value is OK (usually sent from a button labeled OK). |
Cancel | 2 | The dialog box return value is Cancel (usually sent from a button labeled Cancel). |
Abort | 3 | The dialog box return value is Abort (usually sent from a button labeled Abort). |
Retry | 4 | The dialog box return value is Retry (usually sent from a button labeled Retry). |
Ignore | 5 | The dialog box return value is Ignore (usually sent from a button labeled Ignore). |
Yes | 6 | The dialog box return value is Yes (usually sent from a button labeled Yes). |
No | 7 | The dialog box return value is No (usually sent from a button labeled No). |