C# Programming Challenge 14.11: Typing Tutor Part 1 (C# KeyPress Event, C# winforms, C# form controls)

Share it with your friends Like

Thanks! Share it with your friends!


Visual C# How To Program

In this video I go through creating the C# winform and working with C# KeyPress event. We’ll loop through form controls, handle events to capture key user pressed and match that key with our label control.

Typing quickly and correctly is an essential skill for working effectively with computers and the Internet. In this exercise, you’ll build an app that can help users learn to “touch type” (i.e., type correctly without looking at the keyboard).
The app should display a virtual keyboard that mimics the one on your computer and should allow the user to watch what he or she is typing on the screen without looking at the actual keyboard. Use Buttons to represent the keys. As the user presses each key, the app highlights the corresponding Button and adds the character to a TextBox that shows what the user has typed so far. [Hint: To highlight a Button, use its BackColor property to change its background color. When the key is released, reset its original background color.] You can test your program by typing a pangram — a phrase that contains every letter of the alphabet at least once — such as “The quick brown fox jumped over a lazy dog.” You can find other pangrams on the web.
To make the program more interesting you could monitor the user’s accuracy. You could have the user type specific phrases that you’ve prestored in your program and that you display on the screen above the virtual keyboard. You could keep track of how many keystrokes the user types correctly and how many are typed incorrectly. You could also keep track of which keys the user is having difficulty with and display a report showing those keys.

DOWNLOAD SOURCE CODE: yt-14-11-TypingTutor


Write a comment