Results 1 to 3 of 3

Thread: [VB 2010] Colour Changes in Text and Label Masking

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2012
    Posts
    11

    Question [VB 2010] Colour Changes in Text and Label Masking

    Hi there,
    I am making a Hangman Game
    3 questions:

    1. How do i change the colour of the text I am entering. i.e. if the letter entered by the user IS in the word, then I want to make that text appear green in the other textbox, "guessed letters"

    2. I also want to know how to mask and unmask certain characters at will. i.e. when the user guesses a letter, the program checks to see if the character is in the predefined word. If it is, then I want it to unmask that letter on the label, "Word Label". I also want the program to start with the word already masked.

    3. How do I take a random word from a text file for the user to guess?. I have a text file with all the words of the dictionary on a new line.

    Heres the mediafire link to my project: http://goo.gl/HKT8b
    (The dictionary text file is included)
    Thanks in advance,
    Xan

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: [VB 2010] Colour Changes in Text and Label Masking

    Thread moved from the 'VB6 and Earlier' forum to the 'VB.Net' (VB2002 and later) forum

  3. #3
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: [VB 2010] Colour Changes in Text and Label Masking

    A RichTextBox control can be used for multi-colour text.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

Tags for this Thread

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