Question: This is a visual basic program for testing the user for typing at a certain speed. I was hoping for some assistance in looping the



This is a visual basic program for testing the user for typing at a certain speed. I was hoping for some assistance in looping the code so the program would time me typing the provided phrase multiple times before cutting off to the 'Good Job' window.
Typing game (Form1 Events Key Press Dim The Time mistakes count, curent char As Integer Dim The Text As string bs AS Inte 7 E Private Sub Form1 Keypress(Byval sender As object. Byval e As System.Windows. Fo S.KeyPret EventArgs) Handles Me If Tiner1.Enabled False Then Tiner1 Enabled checking the chracter If e-KeyChar Mid(The Text current Chat 1) Then 13 Labels Text Labels. Text & Mid(The Text curent char, 1) checking if the user finsh the exercies If Labels Text The Text Then bled False Ti Ms&Box( excellent you have done the exercise during & Time Label.Text & and mistakes number & mistakes count, "Good job estart the game ent Ch Label 5. Text Label. Text Ti The Tine mistakes Count Wrong Label Text B Exit Sub End If curent char 4- 1 El Beep() tak Count Wrong Label Text mistakes Count BackColor (Color Red bled End If Typing game (Form1 Events Key Press Dim The Time mistakes count, curent char As Integer Dim The Text As string bs AS Inte 7 E Private Sub Form1 Keypress(Byval sender As object. Byval e As System.Windows. Fo S.KeyPret EventArgs) Handles Me If Tiner1.Enabled False Then Tiner1 Enabled checking the chracter If e-KeyChar Mid(The Text current Chat 1) Then 13 Labels Text Labels. Text & Mid(The Text curent char, 1) checking if the user finsh the exercies If Labels Text The Text Then bled False Ti Ms&Box( excellent you have done the exercise during & Time Label.Text & and mistakes number & mistakes count, "Good job estart the game ent Ch Label 5. Text Label. Text Ti The Tine mistakes Count Wrong Label Text B Exit Sub End If curent char 4- 1 El Beep() tak Count Wrong Label Text mistakes Count BackColor (Color Red bled End If
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
