private void ficheInterventionToolStripMenuItem1DD_Click(object sender, EventArgs e) { Form2 f14 = new Form2(); f14.TopLevel = false; this.panel1.Controls.Add(f14); f14.FormBorderStyle = FormBorderStyle.None; f14.Top = 0; f14.Left = 0; f14.Size = f14.ClientSize; f14.Dock = DockStyle.Fill; f14.BringToFront(); f14.Show(); this.Text = "Imprimer Fiche d'intervention"; }
private void button5_Click(object sender, EventArgs e) { Form2 f2 = new Form2(); f2.Show(); f2.BringToFront(); }