There are two types of scanners, some scanners use the serial port to send the data and some send the data in the same way the keyboard sends the data. Use the Serial library for the first type of scanners. For the second type of scanners you can use the attached example (which includes a small library). This library adds the TextChanged event for TextBoxes. This event will happen after the scanner sends the data.