Hitting Enter Will Run Command

M

mmatzke

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...)
 
R

Rick Brandt

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.
 
Top