private void metroButton10_Click(object sender, EventArgs e) { if (ActiveMdiChild != null) { ActiveMdiChild.Close(); } RegisterEmployee newMDIChild = new RegisterEmployee(); // Set the Parent Form of the Child window. newMDIChild.MdiParent = this; // Display the new form. newMDIChild.Show(); newMDIChild.Dock = DockStyle.Fill; }
private void button1_Click(object sender, EventArgs e) { RegisterEmployee registerEmployee = new RegisterEmployee(); registerEmployee.Show(); }