private void btonmenu_Click(object sender, EventArgs e) { if (panel1.Width == 35) { panel1.Visible = false; panel1.Width = 200; paneltransition.ShowSync(panel1); Logotransition.ShowSync(logo); } else { Mtronomo_logo_letras.Visible = false; logo.Visible = false; panel1.Visible = false; panel1.Width = 35; paneltransition.ShowSync(panel1); } }
private void btonmenu_Click_1(object sender, EventArgs e)//boton arrow contrae y expande panel { btonmenu.Image.RotateFlip(RotateFlipType.Rotate180FlipX); if (panel1.Height == 96)//expande { panel1.Visible = false; panel1.Height = 180; panel3.Height = 88; paneltransition.ShowSync(panel1); Logotransition.HideSync(logo); Logotransition.ShowSync(logo); } else { panel1.Height = 96; panel1.Visible = false; panel3.Height = 83; panel3.Height = 173; paneltransition.ShowSync(panel1); Logotransition.HideSync(logo); Logotransition.ShowSync(logo); } }