I discovered that when a Forn Keydown Event Or Form KeyPress event happens
Each character is trapped twice on the same Event routine.
I use VB6, and my form has KeyPreview property = TRUE.
I was debugging a bug concerning use of card Reader, and while entering the
code I found out it works this way.
(When the card is passed correctly with focus on the right field, I get the txtField_keypress and KeyDown events, that are evoked only once each.)
But I have a case in which the txtFields events are not evoked, just the Form Keys events.
How can I avoid it from happening twice? Why does it happen?