开发者

Spawn Event when Barcode is Scanned

开发者 https://www.devze.com 2023-02-22 06:42 出处:网络
Im making an inventory application using c#.The application needs to be driven by the Barcode scanner ie. every time a barcode is scanned, I need an event to be spawned to take the necessary action. I

Im making an inventory application using c#. The application needs to be driven by the Barcode scanner ie. every time a barcode is scanned, I need an event to be spawned to take the necessary action. I am using a USB barcode scanner. I have tried using a TextChanged event in a text box, but this spawns an event for each character in the string, rather than one for the whole string.开发者_JAVA技巧 Any ideas would be appreciated.


Depending on the scanner, you should be able to have it append a new line character after each scan. Then you can have a KeyPress event that waits for a newline before consuming the barcode.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号