//Going to student management form when click on student management button from dashboard
        private void studentdash_Click(object sender, EventArgs e)
        {
            StudentManagement stdm = new StudentManagement();

            this.Hide();
            stdm.ShowDialog();
        }
        //Opening studentmanagement page when click on studentmanagement button
        private void button1_Click(object sender, EventArgs e)
        {
            StudentManagement stud = new StudentManagement();

            this.Hide();
            stud.ShowDialog();
        }