How do I trap the "Enter" event anywhere in a form?

  • Thread starter Thread starter tgif
  • Start date Start date
T

tgif

I tried trapping on the Enter event within a form, but it doesn't seem to
fire. Is there some way to do this? (I want to default to "Logon" when Enter
is pressed within a form without actually having to mouse to the button.
 
Set the Form.AcceptButton to the button you require.. in your case the logon
button
 
* "tgif said:
I tried trapping on the Enter event within a form, but it doesn't seem to
fire. Is there some way to do this? (I want to default to "Logon" when Enter
is pressed within a form without actually having to mouse to the button.

Please don't multipost. I gave you a reply in the other group.
 
The other post was a mistake. I didn't realize I was in the controls group
and this was a forms related question.
 
Thanks... Excellent response. This was perfect and turned out to be much
simpler than I expected.

Works like a champ now.
 
* "tgif said:
The other post was a mistake. I didn't realize I was in the controls group
and this was a forms related question.

No problem...
 

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