Hitting Enter Will Run Command

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to make it so if someone hits the enter key they will not move to the
next field, but run theh command I right. (search, password, etc...)
 
I want to make it so if someone hits the enter key they will not move
to the next field, but run theh command I right. (search, password,
etc...)

You can put your code in the click event of a button (or call it from there)
and then set the Default property of that button to Yes. That will cause
its Click event to run anytime the <Enter> key is pressed.
 
Back
Top