I have a form, with Keypreview = true;
I am capturing barcodes through a keyboard wedge.
I have a panel which displays the keypresses as they occur.
So if I type / scan '1234', the panel displays '1234'
But if I put a combo box on the form, and put focus to the combo box, then type '1234', the panel displays '11223344'
I have stepped through the code and it seems that I am hitting the OnKeyPress event twice for each keypress.
If I replace the combo box with a listbox and set focus and type I do not get the problem.
Has anybody heard of this before? Any help is appreciated.
Andrew
I am capturing barcodes through a keyboard wedge.
I have a panel which displays the keypresses as they occur.
So if I type / scan '1234', the panel displays '1234'
But if I put a combo box on the form, and put focus to the combo box, then type '1234', the panel displays '11223344'
I have stepped through the code and it seems that I am hitting the OnKeyPress event twice for each keypress.
If I replace the combo box with a listbox and set focus and type I do not get the problem.
Has anybody heard of this before? Any help is appreciated.
Andrew