private void editRecursos_Click(object sender, EventArgs e) { fRecursos childForm = new fRecursos(); childForm.MdiParent = this; childForm.Text = "Ventana " + childFormNumber++; childForm.Show(); }
private void recursosToolstripMenuItem(object sender, EventArgs e) { if (Application.OpenForms["fRecursos"] != null) { Application.OpenForms["fRecursos"].Activate(); } else { fRecursos fr = new fRecursos(); fr.MdiParent = this; fr.Show(); } }