The DialogResult property of a Button control can be assigned a value from the DialogResult enumerations, which are as follows:
Abort-Returns Abort
Cancel-Returns Cancel
Ignore-Returns Ignore
No-Returns No
None-Nothing is returned from the dialog box
OK-Returns OK
Retry-Returns Retry
Yes-Returns Yes