private void Torres_Load(object sender, EventArgs e) { // a los discos se les asigna el panel 1 y se invoca el metodo bingtofront coloca enfrete de todo D1.Parent = panel1; D2.Parent = panel1; D3.Parent = panel1; D4.Parent = panel1; D5.Parent = panel1; D1.Top = panel1.Height - D1.Height - 0 * D1.Height - PicBase1.Height; D2.Top = panel1.Height - D2.Height - 1 * D2.Height - PicBase1.Height; D3.Top = panel1.Height - D3.Height - 2 * D3.Height - PicBase1.Height; D4.Top = panel1.Height - D4.Height - 3 * D4.Height - PicBase1.Height; D5.Top = panel1.Height - D5.Height - 4 * D5.Height - PicBase1.Height; D1.BringToFront(); D2.BringToFront(); D3.BringToFront(); D4.BringToFront(); D5.BringToFront(); pila1.Clear(); pila1.Push(D1); pila1.Push(D2); pila1.Push(D3); pila1.Push(D4); pila1.Push(D5); pila2.Clear(); pila3.Clear(); contador = 0; LbTotal.Text = "0"; }