private void Form1_Load(object sender, EventArgs e) { btnBoton1.Location = new Point(7, 60); btnBoton2.Location = new Point(7, 110); PanelBoton1.Hide(); PanelBoton2.Hide(); }
private void btnBoton1_Click(object sender, EventArgs e) { if (PanelBoton1.Visible == true) { PanelBoton1.Visible = false; } else { PanelBoton1.Visible = true; } btnBoton1.Location = new Point(7, 60); PanelBoton1.Location = new Point(7, 108); btnBoton2.Location = new Point(7, 209); PanelBoton2.Hide(); if (PanelBoton1.Visible == false) { btnBoton1.Location = new Point(7, 60); btnBoton2.Location = new Point(7, 110); } }