private void button7_Click(object sender, EventArgs e)
        {
            label9.Visible = false;
            string   studentId = comboBox2.SelectedItem.ToString();
            string   intake    = comboBox1.SelectedItem.ToString();
            string   fName     = textBox2.Text;
            string   lName     = textBox3.Text;
            string   pNo       = textBox4.Text;
            DateTime bd        = dateTimePicker1.Value;
            string   address   = textBox6.Text;

            if (studentId.Length < 2 || intake.Length < 2 || fName.Length < 2 || lName.Length < 2 ||
                pNo.Length < 2 || address.Length < 2)
            {
                label9.Text    = "Please Fill All The Fields";
                label9.Visible = true;
                return;
            }
            DataSets.student studentInfo = new DataSets.student();
            studentInfo.id      = studentId;
            studentInfo.intake  = intake;
            studentInfo.fname   = fName;
            studentInfo.lname   = lName;
            studentInfo.pno     = pNo;
            studentInfo.bd      = bd;
            studentInfo.address = address;
            dbm.updateStudent(studentInfo);
            MessageBox.Show("The New Student Has Been Updated Successfully.");
            this.Dispose();
        }