Get data from barcode reader without textbox
问题 My barcode reader is a HID type and use the USB. I can get the data when the text box is focus and do some business logic. private void Form1_KeyUp(object sender, KeyEventArgs e) { if (e.KeyValue == (char)Keys.Return) { e.Handled = true; int barcodeLength = textBox1.TextLength; textBox1.Select(0, barcodeLength); queryData(textBox1.Text); } } After I google, I found this article and try to implement to my application. But the problem now, the value return with double character. If string is