|
-
Jul 1st, 2005, 01:04 PM
#1
Thread Starter
Lively Member
Stupid Enter Key {RESOLVED}
This is such a stupid problem, its embarrassing how much time I'm spending on it.
I made a custom login form. When the user hits the Enter key while in the password textbox, I want the form to treat it as though they hit the OK button.
No problem, right? I'll just catch the Enter keypress in the txtPass_Keypress Event and have it run the command button code.
No. When I hit enter in the password textbox, it tabs to the next control on the form. In fact, the keypress event is never fired. If I type any other character, the keypress event is fired, but not with the Enter key. What gives? Anyone know what I'm doing wrong?
Last edited by mikeyc1204; Jul 1st, 2005 at 01:08 PM.
Reason: resolved
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
|