private void listadoToolStripMenuItem2_Click(object sender, EventArgs e) { Form existe = Application.OpenForms.OfType <Form>().Where(pre => pre.Name == "FormDivisiones").SingleOrDefault <Form>(); if (existe != null) { existe.WindowState = FormWindowState.Maximized; existe.BringToFront(); //this.Size = new Size(862, 685); } else { Divisiones newMDIChild = new Divisiones(id_comunidad); newMDIChild.MdiParent = this; newMDIChild.WindowState = FormWindowState.Maximized; newMDIChild.Show(); //this.Size = new Size(862,685); } }
public BusquedaAvanzada(Divisiones form_anterior) { InitializeComponent(); this.form_anterior = form_anterior; }