On Enter press Click button (1 Viewer)

speakers_86

Registered User.
Local time
Today, 10:50
Joined
May 17, 2007
Messages
1,919
My login form has a submit button. When the focus is on the password box, the user has to press enter twice to click submit. The first enter changes focus, the second enter clicks the submit button.

Im looking for code that...

1. fires while the focus is on txtpassword after enter is pressed
2. clicks the submit button (or at least I could copy the code from the submit on click event)

I know this is kind of tedious, but if the procedures to do this arent too hard, can some one help?

Fingers crossed-this is the last thing that I see that I need to do.
 

boblarson

Smeghead
Local time
Today, 07:50
Joined
Jan 12, 2001
Messages
32,059
Set the button's DEFAULT property to YES. That should do it for you.
 

speakers_86

Registered User.
Local time
Today, 10:50
Joined
May 17, 2007
Messages
1,919
I cant give you any more rep!

Thanks.
 

boblarson

Smeghead
Local time
Today, 07:50
Joined
Jan 12, 2001
Messages
32,059
I cant give you any more rep!

Thanks.
No problem.


 

Users who are viewing this thread

Top Bottom