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