this.button1.DialogResult = DialogResult.OK;

this.button1.DialogResult = DialogResult.OK;