keyup problems

  • Thread starter Thread starter Nikolay Petrov
  • Start date Start date
N

Nikolay Petrov

I have a form with two text boxes and a two buttons.
I want when a user press Enter key when in first text box, the focus moves
to the second and agian when in second and the enter key is pressed the
focus moves to the one of the buttons.

I have done that, and it work fine, but my Form has an Accept button set to
this first button and every time the user presses Enter the button's code is
also executed.

How to prevent this?
 
Hi Nilolay
this is normal that the button code is excuted . Since it is set as the
accept button of your from, its code is executed with an enter press on the
from .
In this case you might remove the your button from being the accept button
of the form

Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top