View Single Post
Old Jul 21st, 2007, 7:08 AM   #11
verion24
Newbie
 
Join Date: Jul 2007
Posts: 6
Rep Power: 0 verion24 is on a distinguished road
Thanks so much everyone, I have almost worked it all out. If i type the answer, backspace it, and type it in again, it gives the user another score. How could I resolve this?

vb Syntax (Toggle Plain Text)
  1.  
  2. Dim score As Integer
  3. Private Sub Form_Load()
  4. lblscore.Caption = score
  5. End Sub
  6. Private Sub txtquestion1_Change()
  7. If txtquestion1.Text = "beijing" Then
  8. score = score + 1
  9. lblscore.Caption = score
  10. End If
  11. End Sub
  12. Private Sub txtquestion2_change()
  13. If txtquestion2.Text = "pacific ocean" Then
  14. score = score + 1
  15. lblscore.Caption = score
  16. End If
  17. End Sub

Last edited by verion24; Jul 21st, 2007 at 7:40 AM.
verion24 is offline   Reply With Quote