Specifies the value returned by the Form.Execute method.
| Value | Description |
| 1 | OK |
| 2 | Cancel |
| 3 | Abort |
| 4 | Retry |
| 5 | Ignore |
| 6 | Yes |
| 7 | No |
| 10 | Try Again |
| 11 | Continue |
If the DialogResult property is set to any value other than 0, clicking the button closes the parent form. The return value from the Form.Execute method is the DialogResult of the button that was clicked. For example, to create an OK/Cancel dialog box, add two buttons and set their DialogResult properties to 1 and 2.