Simply set the form's DialogResult property:

this.DialogResult = DialogResult.OK;

Then you can close the form using Close() as normal.