//Register Now Button private void label5_Click(object sender, EventArgs e) { this.Hide(); RegisterForm regis = new RegisterForm(); regis.MdiParent = this.MdiParent; regis.Show(); }
private void registerToolStripMenuItem_Click(object sender, EventArgs e) { registerForm = new RegisterForm(); if (this.MdiChildren.Count() > 0) { foreach (Form child in this.MdiChildren) { if (this.MdiChildren.Contains(registerForm)) { child.Close(); } } } else { registerForm.MdiParent = this; registerForm.Show(); } }