private void btnTranferTable_Click(object sender, EventArgs e) { frmTransferTable frm = new frmTransferTable(); if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.Close(); AfterJoinTable(); } }