Connect a textbox to the Enter key

Discussion in 'General troubleshooting' started by pongourcom1, Jun 1, 2005.

  1. One of my web application has a Textbox. I wantit to receive mouse cursor by default and to respond to the the user pressing the Enter key on the keyboard instead of clicking on a button. It's possible with a Window appliction but how canwe do that in a web application?
    Thanks.
     
  2. The following function will permit you to set the focus to your textbox or any other control by calling SetFocus(ControlNameHere)

     
  3. Yes you have addressed the first part of my question. What about having the textbox catch the Enter key?
    Thanks.
     
  4. The last line of my previous post addressed the second part.
     

Share This Page