If you need the barcode written into a textbox, you'll not need extra work to do. Barcode scanners simulate keypress event. Even you can handle window.keypress event to hook the preamble and postamble characters. That way the client do not need to focus on the specific textbox.
Or else the reader uses a hardware driver (? don't know such vendors exists ?) , then you'll need an ActiveX object to wrap the library.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…