Results 1 to 5 of 5

Thread: Typing Game?

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    2

    Question Typing Game?

    Hello. I am making a typing game for the final project of my short, highschool VB 6 course. I am looking for a way to have a string of letters displayed that the user needs to type in. I can make a string of random letters, but I don't want the user to type the letter in a seperate box. I want each character to change to a different color when the user types it in.

    So, for a string "asdf",
    typing "s" should do nothing
    typing "a" should change "a" to green
    then typing "s" should change "s" to green.

    I also need the program to know when all the letters have been typed in correctly.

    Thank you in advance!

  2. #2
    Addicted Member
    Join Date
    Feb 2006
    Location
    The Sea of Tranquility
    Posts
    252

    Re: Typing Game?

    Is there anything in particular you need help with? We cannot do the entire project for you. Post what you have done so far.
    Rich

    A)bort, R)etry, I)nfluence with large hammer.
    Please take a moment to rate useful posts.

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    2

    Re: Typing Game?

    I need to know how to code the way the user types in the text. I don't know how to make the letters change colors when typed. I don't even know were to begin with that. I can do the rest of the project.

  4. #4
    Addicted Member
    Join Date
    Feb 2006
    Location
    The Sea of Tranquility
    Posts
    252

    Re: Typing Game?

    You will need to use the rich text box control to change the letters to different colours. Add it by going to Project-> components. Experiment with the rtb's properties see if you can get the letters to change colour.
    Rich

    A)bort, R)etry, I)nfluence with large hammer.
    Please take a moment to rate useful posts.

  5. #5
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: Typing Game?

    Yes look at using the RichTextBox Control Though you will need to make a function to automatically change the color of the text.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width