Link to home
Start Free TrialLog in
Avatar of JoseJalapeno
JoseJalapeno

asked on

vba "On Enter" event

I am quite familiar with the vba "On Enter" event.
My question is this:
What is its equivalent in VB9 (Visual studio 2008)

I had a text box in vba that responded to an "enter" send from a barcode scanner using the "on Enter" event. I cant seem to reproduce this behaviour.

Any ideas would be gratefully received.
Avatar of kaufmed
kaufmed
Flag of United States of America image

When you say on Enter, are you referring to the Enter key being pressed?
Or in better terms, the textbox receives a CRLF?
Avatar of JoseJalapeno
JoseJalapeno

ASKER

Yes you are correct.
The "Enter" event in VB9 triggers when the textbox gets the focus not a crlf
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Kaufmed! you are a gentleman, it worked first time.
This VB9 is very different to VB6 and office2007 vba it will take me a while to get used to it.
I think in time you'll grow to like it better. It is frustrating first starting out because you're used to the old ways, but once you get the hang of it, it will be a breeze.

For me, it was going backwards, from VB9 to VB6...  what a joy that was ;)