private void button2_Click(object sender, EventArgs e)
      {
          sidepanel.Height = AssignmentbuttonStudentPanel.Height;
          sidepanel.Top    = AssignmentbuttonStudentPanel.Top;
          login_fm.ID      = "";
          login_fm.NAME    = "";
          login_fm lg = new login_fm();

          lg.Show();
          this.Hide();
      }
        private void LogOut_Click(object sender, EventArgs e)
        {
            sidepanel.Height = LogOut.Height;
            sidepanel.Top    = LogOut.Top;
            login_fm.ID      = "";
            login_fm.NAME    = "";
            login_fm lg = new login_fm();

            lg.Show();
            this.Hide();
        }