|
-
May 2nd, 2000, 04:48 PM
#1
Thread Starter
New Member
Can somebody please help me. I have designed a library viewer using Visual Basic. The program works fine but one thing is annoying me. I have a password screen in my program which requires the user to enter a password to proceed, I want the program to be set up so that all the user has to do when he/she enters the password is press the Enter/Return key to proceed (assuming they have the password is correct). Does anyone know a piece of code that will allow the user to do this? I would be gratefull for any help as I am just a begginer in programing.
Thanks
[email protected]
-
May 2nd, 2000, 04:56 PM
#2
if you have an ok-button, you could make this button the default button, just have a look in the properties-windows.
another option would be to use the keypress-event, the ASCII-code for RETURN is 13 or vbCR.
hope that helps
-
May 2nd, 2000, 05:00 PM
#3
Thread Starter
New Member
Thanks Sascha
Thanks for that Sascha. It is an OK button that I have.
-
May 2nd, 2000, 05:24 PM
#4
PowerPoster
Simply set the Default -property of the button to True
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|