marksquall
Active member
- Joined
- Oct 17, 2009
- Messages
- 28
- Programming Experience
- 3-5
Dear members and administrators,
Hello and a pleasant day.
I am working with simple typing game and I had a tutorial section on this game.
I have a String object like the one given below and show the content of the String in a Label:
I know I will use the Forms KeyPress Event to determine which letters had been pressed. But how would I change the color of each letter every time the player typed the letter correctly. For example, by default my LblMessage's ForeColor is black, but if the user press the "w" key, The letter "w" in the word "welcome" will change into bright color, like red for example.
Thank you for any ideas on how would I come up to this task.
Thank you and more power.
Warm regards,
Mark Squall
Hello and a pleasant day.
I am working with simple typing game and I had a tutorial section on this game.
I have a String object like the one given below and show the content of the String in a Label:
VB.NET:
Dim message As String ="welcome to this typing game"
LblMessage.Text = message
I know I will use the Forms KeyPress Event to determine which letters had been pressed. But how would I change the color of each letter every time the player typed the letter correctly. For example, by default my LblMessage's ForeColor is black, but if the user press the "w" key, The letter "w" in the word "welcome" will change into bright color, like red for example.
Thank you for any ideas on how would I come up to this task.
Thank you and more power.
Warm regards,
Mark Squall