Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
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
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Completely oblivous CodeJunkie Assembly 30 Aug 20th, 2005 11:03 AM
Completely new to VB.NET Jaymes Visual Basic .NET 4 May 28th, 2005 7:04 PM
Completely lost, help needed bliznags C++ 2 Mar 19th, 2005 4:44 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:52 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC