There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand the world. There is no such thing as a dumb question.
Since I've been offline for the past 5 days or so I decided to have a little fun and build a new version of the Security Keypad.
This version uses 8 labels for the Access Code (each label contains one character). I used labels so the fields couldn't get focus as I didn't want to see the cursor. I added an Eventhandler to handle the button clicks.
Since labels don't have a PasswordChar property I hade to code that myself. As each character is entered it is also added to an Array so I can easily flip between the code character and the password character.
When the correct code is entered a Timer Tick event waits 5 seconds before opening my menu form.
Below are some screenshots of the Keypad and some selected code.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Visual Basic Forum.