private void deTakenToolStripMenuItem_Click(object sender, EventArgs e) { DisposeAllChilds(); ADM_NieuweTaken newFrm = new ADM_NieuweTaken(); newFrm.MdiParent = this; newFrm.WindowState = FormWindowState.Maximized; newFrm.Show(); }
private void btnNieuw_Click(object sender, EventArgs e) { if (ActiveMdiChild != null) { ActiveMdiChild.Close(); } ADM_NieuweTaken newFrm = new ADM_NieuweTaken(); newFrm.MdiParent = Form2.ActiveForm; newFrm.WindowState = FormWindowState.Maximized; newFrm.Show(); }