When you define your frmIntegrationConfig() window, you should set the "AcceptButton" and "CancelButton" properties on the form to the buttons you want to trigger the accept and cancel behaviours for your dialog.
You should also set the "DialogResult" properties on your buttons to control the specific DialogResult value that the button causes the dialog to return.
EG, amongst all the other stuff in your designer file for the dialog you need to end up with something like:
this.accept = new System.Windows.Forms.Button();
this.cancel = new System.Windows.Forms.Button();
this.other = new System.Windows.Forms.Button();
//
// accept
//
this.accept.DialogResult = System.Windows.Forms.DialogResult.OK;
//
// cancel
//
this.cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
//
// other
//
this.other.DialogResult = System.Windows.Forms.DialogResult.Ignore;
//
// Form2
//
this.AcceptButton = this.accept;
this.CancelButton = this.cancel;
this.Controls.Add(this.other);
this.Controls.Add(this.cancel);
this.Controls.Add(this.accept);