Intercept Barcode Scanner, Pass to Application with Focus When Done?

后端 未结 3 1002
滥情空心
滥情空心 2020-12-18 12:21

Is there a way to intercept USB Barcode Scanner input, utilize it, then pass it on to the application that has focus?

We currently use Barcode scanners load order sh

3条回答
  •  独厮守ぢ
    2020-12-18 12:33

    You will want to create a windows Form and in the Load event of the form, give focus to the TextBox that the barcode should be entered into. Then in the TextChanged event of the TextBox, do whatever processing you need to.

    http://msdn.microsoft.com/en-us/library/system.windows.forms.textbox.aspx

    Misunderstood the question, try googling a little bit:

    http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/5213874a-603e-4378-835d-f6488f382d47

提交回复
热议问题