private void consultCompanyToolStripMenuItem_Click(object sender, EventArgs e) { if (cons == null || cons.IsDisposed) { cons = new Consult_Company(); cons.MdiParent = this; cons.Show(); } else { cons.WindowState = FormWindowState.Maximized; cons.Activate(); } }