I have another question for my game. (You can download the demo here: http://www.vbforums.com/showthread.php?686607)
In the game you find a note with a code to open the safe. The code is 131288, but how can I make that when you enter the code, you only go to the next screen when you enter the right code and when it's anything different that 131288 that it displays a messagebox with 'That's the wrong code' or something. This is what the screen looks like:
Right now if you type just 1 character in, it automatically goes to the next screen. This is the code:
Can someone help me? Thanks in advance!Code:Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged Me.Hide() Form10.Show() End Sub



Reply With Quote

