private void button2_Click(object sender, EventArgs e) { if (this.panel1.Controls.Count > 0) this.panel1.Controls.RemoveAt(0); FormJugar formJugar = new FormJugar(); formJugar.TopLevel = false; formJugar.FormBorderStyle = FormBorderStyle.None; formJugar.Dock = DockStyle.Fill; this.panel1.Controls.Add(formJugar); this.panel1.Tag = formJugar; formJugar.Show(); }
private void button2_Click(object sender, EventArgs e) { if (this.panel1.Controls.Count > 0) { this.panel1.Controls.RemoveAt(0); } FormJugar formJugar = new FormJugar(); formJugar.TopLevel = false; formJugar.FormBorderStyle = FormBorderStyle.None; formJugar.Dock = DockStyle.Fill; this.panel1.Controls.Add(formJugar); this.panel1.Tag = formJugar; formJugar.Show(); }