I created a small project and tested events from Form_keypress
and either if I typed the characters or passed the magnetic card, each character evoked each event ONLY once.
But When I run the large project I work on, every FORM Key event is called twice per each character .
I don't even know where to look for the problem.
Has anybody run into something like this ?????
User Profile
Collapse
-
I am debugging a little problem on a project.
There is a situation that only the form traps the key events (because the user does not put the cursor , where he should, so the control events don't trigger) and I must trap this situation and fix it.
While debugging I found out every time a character is entered (by a card, through a card reader) the Form_KeyPress event is triggered twice, as well as the Form_KeyDown and Form_KeyUp....Leave a comment:
-
Form Keypress events trapped twice ????
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_keypre ss and KeyDown...
No activity results to display
Show More
Leave a comment: