DialogResult Enum

Specifies identifiers to indicate the return value of a dialog box.

public enum DialogResult

Remarks

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

NameValueDescription
None0Nothing is returned from the dialog box. This means that the modal dialog continues running.
OK1The dialog box return value is OK (usually sent from a button labeled OK).
Cancel2The dialog box return value is Cancel (usually sent from a button labeled Cancel).
Abort3The dialog box return value is Abort (usually sent from a button labeled Abort).
Retry4The dialog box return value is Retry (usually sent from a button labeled Retry).
Ignore5The dialog box return value is Ignore (usually sent from a button labeled Ignore).
Yes6The dialog box return value is Yes (usually sent from a button labeled Yes).
No7The dialog box return value is No (usually sent from a button labeled No).