Default Button to Catch <ENTER> key

  • Thread starter Thread starter JP
  • Start date Start date
J

JP

Hi,

It's a login screen, so users enter their ID/Password and
hit <ENTER> instead of clicking on Login button. But when
they hit <ENTER> an Image Button gets clicked.

I want to make my Login Button a default so that when
users hit <ENTER> key, Login Button receives a click.

Please help!
Thanks!

JP
 
JP,

I have code to do exactly this on my web site: www.aboutfortunate.com

Just go to the code library. The entry you need is titled: "Fire a button
click from any text box when enter key is pressed"

Just jump directly to page two of the datagrid. It's the first entry on
page two.

Happy coding!

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
 
Back
Top