Re: help with hangman game!!
The scope of found is incorrect.
Remove it from the top of the class and add it inside the Form1_KeyPress event as Dim found as string = "0" .
This way, each time it enters the Form1_KeyPress event it starts with 0.
You should check into how scope works and define better types for your variables.
Instead of found being a string, make it a boolean with true/false, for example.
Have fun creating your game.
HTH,
HoraShadow
Re: help with hangman game!!
To trouble shoot you have very powerful tools inside Visual Studio.
You should check into adding break points, and using the immediate window to query variable values when the project is in pause mode.
You also have the debug tool bar in the Visual Studio designer, that let's you go line by line of code (key F11).
You should also check the Watch, Quick Watch and Local windows on Visual Studio, they give great information and it's very simple to use them.
HTH,
HoraShadow
Re: help with hangman game!!
Finally i've managed to resolve it, all credit to your advice HoraShadow,
Thanks!!