private void pictureBox3_Click(object sender, EventArgs e)
        {
            this.Hide();
            GeneralInformation f1 = new GeneralInformation();

            f1.Show();
        }
 public void returnval(int c)
 {
     if (c == 1)
     {
         MessageBox.Show("Ok");
         GeneralInformation f1 = new GeneralInformation();
         this.Hide();
         f1.Show();
     }
     else
     {
         MessageBox.Show("Invalid Credentials");
     }
 }
 private void label8_Click(object sender, EventArgs e)
 {
     if (r == "1" && fee == textBox6.Text)
     {
         MessageBox.Show("Fee Collected");
         insertdata(connection, textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text, textBox5.Text, r, textBox6.Text);
         this.Hide();
         GeneralInformation f2 = new GeneralInformation();
         f2.Show();
     }
     else if (r == "2" && fee == textBox6.Text)
     {
         MessageBox.Show("Fee Collected");
         insertdata(connection, textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text, textBox5.Text, r, textBox6.Text);
         this.Hide();
         GeneralInformation f2 = new GeneralInformation();
         f2.Show();
     }
     else if (r == "3" && fee == textBox6.Text)
     {
         MessageBox.Show("Fee Collected");
         insertdata(connection, textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text, textBox5.Text, r, textBox6.Text);
         this.Hide();
         GeneralInformation f2 = new GeneralInformation();
         f2.Show();
     }
     else if (r == "4" && fee == textBox6.Text)
     {
         MessageBox.Show("Fee Collected");
         insertdata(connection, textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text, textBox5.Text, r, textBox6.Text);
         this.Hide();
         GeneralInformation f2 = new GeneralInformation();
         f2.Show();
     }
     else if (r == "5" && fee == textBox6.Text)
     {
         MessageBox.Show("Fee Collected");
         insertdata(connection, textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text, textBox5.Text, r, textBox6.Text);
         this.Hide();
         GeneralInformation f2 = new GeneralInformation();
         f2.Show();
     }
     else
     {
         MessageBox.Show("Please Pay Correct Amount!");
     }
 }