private void panel1_Click(object sender, EventArgs e) { //controls foreach (Form form in Application.OpenForms) { if (form.GetType() == typeof(HoldAccounts)) { form.Activate(); return; } } HoldAccounts frm = new HoldAccounts(); frm.Show(); frm.MdiParent = this; }
private void button21_Click(object sender, EventArgs e) { //Hide Panel panelMembership.Visible = false; //controls foreach (Form form in Application.OpenForms) { if (form.GetType() == typeof(HoldAccounts)) { form.Activate(); return; } } HoldAccounts frm = new HoldAccounts(); frm.Show(); frm.MdiParent = this; }