the only problem is I can't get the timer to work properly
I want to have a label with a random sentence and a textbox for me to type the sentence into. i want the timer to start when i click on the textbox and start typing. And the timer i want to be at 30 seconds, and when it gets to 0 seconds the textbox should be readonly and then it tells you how many words are in the textbox.
Could you please help me?
##I AM NOT ASKING FOR CODE I AM NEEDING HELP AND WONDERING IF ANYONE COULD HELP ME OUT##
********THIS ISN'T FOR SCHOOL OR ANYTHING, IT IS FOR MY OWN PERSONAL USE********
I am trying to make my own version of MicroPace.
I am a noob at programming...PLEASE HELP ME!!!
This is my code for the application so far (without the timer code, cause thats what i need some help with)
Public Class Form1
Private Sub tb1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles tb1.KeyDown
If e.KeyCode = Keys.Back Then
e.SuppressKeyPress = True
End If
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tb1.TextChanged
If tb1.Text = lb1.Text Then
MsgBox("Good Job...No Errors!!!", MsgBoxStyle.Exclamation, "Good Job!!")
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
lb1.Text = Int(Rnd() * 16)
Select Case lb1.Text
Case 0
lb1.Text = "random sentence"
Case 1
lb1.Text = "jsabdkvjsv"
Case 2
lb1.Text = "asdfadsfifdnvk"
Case 3
lb1.Text = "sdfnjaskdkjvajnfvjka"
Case 4
lb1.Text = "sdjfnkjsadnvkajfv"
Case 5
lb1.Text = "sdjfbajisdvbkasbvjka"
Case 6
lb1.Text = "ajdvkadfnvjkdfv"
Case 7
lb1.Text = "sjnvjaksdfvlnadjv"
Case 8
lb1.Text = "jnvsdfvsdjfkvkas"
Case 9
lb1.Text = "msdfasdvadvjfs"
Case 10
lb1.Text = "Tasdnvjhakfvkfvn."
Case 11
lb1.Text = "sdkjadfsvbhkaljsdifva"
Case 12
lb1.Text = "sdvjabdjkvbabfvafdv"
Case 13
lb1.Text = "asdvbuasdnvuiabjsvdoiaskj"
Case 14
lb1.Text = "Aadsnvaisklvanadadvasdv"
Case 15
lb1.Text = "asjdbhvjasdfoijvbafsdv"
End Select
tb1.Text = ""
End Sub

New Topic/Question
Reply



MultiQuote




|