Reputation:
I am developing a POS application where the barcode scanner reads the barcode and displays the barcode text. It is working fine but as i have used the enter key for submitting the form, which i have triggered with overriding ProcessCmdKey().
So after everytime i do a scanning from barcode scanner, it triggers my custom function of save. how do i prevent barcode from emulating the ENTER keypress.
Upvotes: 1
Views: 5569
Reputation: 3642
For Honeywell
scanner follow the steps.
Take a print out of This document and scan the code you want. It has options for enable and disable CR and LF.
Ref: Reference Link
Upvotes: 1
Reputation: 1766
It is not inevitable that an "Enter" is pressed by a barcode scan. Either the barcodes you are scanning include an enter character, or your software is reacting to the scan event, or your scanning device is set to add a "CR" after every barcode it scans.
Upvotes: 0
Reputation: 631
I don't think you can do that, and if this is something possible it will depends on the POC scanner itself. So it might be different from one manufacturer to the other.
What you can do however is to handle Enter event on bar code text box, this way that event handler will get called instead of save event.
Upvotes: 0