private void button1_Click(object sender, EventArgs e) { Telateste venda = new Telateste(); venda.Show(); //Telateste frmFilho = new Telateste(); //frmFilho.MDI_Pai = this; //frmFilho.Show(); //Telateste Form4 = new Telateste(); //Form4.Show(); }
private void venderToolStripMenuItem_Click(object sender, EventArgs e) { try { if (Application.OpenForms["Telateste"] == null) { Telateste newMDIChild = new Telateste(); // Set the Parent Form of the Child window. newMDIChild.MdiParent = this; // Display the new form. newMDIChild.Show(); } } catch { } }