DialogResult Property

Specifies the return value from the Form.Execute method.

Values

ValueDescription
1OK
2Cancel
3Abort
4Retry
5Ignore
6Yes
7No
10Try Again
11Continue

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.

See Also

Button Object

Form Object