[VB 2010] Colour Changes in Text and Label Masking
Hi there, :wave:
I am making a Hangman Game :eek2:
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
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
Re: [VB 2010] Colour Changes in Text and Label Masking
A RichTextBox control can be used for multi-colour text.