private void MenuButton_Click(object sender, EventArgs e) { if (MenuBar.Width == 279) { MenuBar.Visible = false; MenuBar.Width = 68; MenuPanel.Width = 90; CloseAnimation.Show(MenuBar); this.Width = 842; } else { MenuBar.Visible = false; MenuBar.Width = 279; MenuPanel.Width = 300; OpenAnimation.Show(MenuBar); this.Width = 1052; } }