private void button1_Click(object sender, EventArgs e)
        {
            dept d = new dept();

            d.Show();
            this.Hide();
        }
 private void bk_Click(object sender, EventArgs e)
 {
     if (gar == 2)
     {
         dept d = new dept();
         d.Show();
         this.Hide();
     }
     else if (gar == 4)
     {
         select d = new select();
         d.Show();
         this.Hide();
     }
 }