title: distinguish between the scanner and the keyboard
body: <p>hey all.
  I have a barcode scanner connected to a PC that working with a c# program.now i want to distinguish between the scanner and the keyboard which one is sending data to my program.
  can everyone help me with a code or advise in c#?</p>
  
  <p>somebody said this to me in another topic(but i can't do this yet):
  basically you can configure the scanner to send some characters that basically tell the computer "hi, it's me". When you see those characters in your input stream, you know the information is coming from the barcode scanner, not from something the user typed on the keyboard. Did you check the manual that came with your barcode scanner? It should have more information about this.</p>