private void SUBMIT_Click(object sender, EventArgs e)
        {
            if (TID.Text!= "" & FNAME.Text != "" & LNAME.Text != "" & QUALI.Text != "" & EMAIL.Text != "" & MOB.Text != "" & PASS.Text != "")
            {
                com.Connection = con;
                com.CommandText = "insert into tprofile(TID,FNAME,LNAME,QUALI,EMAIL,MOB,PASS) values ('" + TID.Text + "','" + FNAME.Text + "','" + LNAME.Text + "','" + QUALI.Text + "','" + EMAIL.Text + "','" + MOB.Text + "','" + PASS.Text + "')";
                com.ExecuteNonQuery();
                com.Dispose();
                MessageBox.Show("record inserted");
                TID.Text = "";
                FNAME.Text = "";
                LNAME.Text = "";
                QUALI.Text = "";
                EMAIL.Text = "";
                MOB.Text = "";
                PASS.Text = "";
                main f = new main();
                f.Show();
                Hide();

            }
            else
            {
                MessageBox.Show("Plzzz insert all entries ");
            }
        }
 private void button1_Click(object sender, EventArgs e)
 {
     main f = new main();
     f.Show();
     Hide();
 }