I have a USB barcode scanner attached.
I'm currently detecting whether key presses were sent to a text box from it via keyups, by having it send a special key combination before it sends the barcode.
However I was wondering if there is another way to do it.
I took at the KeyEventArgs
private void TextBox_KeyUp(object sender, KeyEventArgs e)
this.TextBlock1.Text = e.KeyboardDevice.ToString();
I've used this answer to solve the same problem in the past. The answer contains a link with full details about the solution. http://stackoverflow.com/a/589326/2696641