Form.dialogResult property
public DialogResult dialogResult [property setter]
public DialogResult dialogResult [property getter]
The dialog's result when the user is done working with it. This is usually most useful for modal dialogs that wait to return.
See also: DialogResult, showDialog