I am trying to figure out how to do an automatic inventory look up using a barcode reader. Right now I have items in my database that I can retrieve by scanning an item and then tabbing out of the textbox with code like this.
VB Code:
  1. Private Sub txtBarcode_Leave(ByVal sender As Object, _
  2.         ByVal e As System.EventArgs) _
  3.         Handles txtBarcode.LostFocus
  4.  
  5.         LookUpItem()
  6.  
  7.     End Sub

However, I want to be able to scan an item and have the lookup happen automatically without the user having to press tab, enter or mouse out of the text box. I have tried various textbox events but none have done what I need it to do.

After a scan an item I do get a sound like the scanner is trying to fire an event but the program doesn't know what to do with it. Any ideas?