private void vendedoresToolStripMenuItem_Click(object sender, EventArgs e) { ConsultarVendasVendedor form = new ConsultarVendasVendedor(); form.MdiParent = this; form.Show(); }
private void novoToolStripMenuItem_Click(object sender, EventArgs e) { try { if (Application.OpenForms["Form3"] == null) { ConsultarVendasVendedor newMDIChild = new ConsultarVendasVendedor(); // Set the Parent Form of the Child window. newMDIChild.MdiParent = this; // Display the new form. newMDIChild.Show(); } } catch { } }