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