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

Share it with your friends Like

Thanks! Share it with your friends!

Close

Visual C# How To Program

We continue to build Events that control the functionality of our app. We use C# event handling to work with arrow keys, delete key, enter key as well as mouse click events to ensure the user can use our app as intended.

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

Comments

Write a comment

*