Need some help. I'm trying to send control codes in hexadecimal format to a barcode scanner that is connected to a com port. Does anyone have any idea how to do this? The com port opens, but when I try to send a simulated keystroke to the scanner, it either does nothing or receives junk.

Example: Trying to send "ESC" (Hex 9B) to the scanner to bring it to the main menu.

I will persue any and all solutions.

Using Visual Basic 6.

TIA