Exemple #1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     btnBoton1.Location = new Point(7, 60);
     btnBoton2.Location = new Point(7, 110);
     PanelBoton1.Hide();
     PanelBoton2.Hide();
 }
Exemple #2
0
        private void btnBoton2_Click(object sender, EventArgs e)
        {
            if (PanelBoton2.Visible == true)
            {
                PanelBoton2.Visible = false;
            }
            else
            {
                PanelBoton2.Visible = true;
            }

            PanelBoton2.Location = new Point(7, 157);
            btnBoton1.Location   = new Point(7, 60);
            btnBoton2.Location   = new Point(7, 109);

            PanelBoton1.Hide();

            if (PanelBoton2.Visible == false)
            {
                btnBoton1.Location = new Point(7, 60);
                btnBoton2.Location = new Point(7, 110);
            }
        }