Click here to Skip to main content
14,865,447 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to scan barcode using barcode scanner from my windows application and display the code in a textbox. Please help me to achieve it. If possible please give sample code.
Posted
Updated 19-Mar-10 7:39am
v2

First thing you need to check is what software support is provided by your scanner, as it may already offer the facilities you require.
   
Most barcode scanners work by simulating keyboard input. As such, provided the textbox has the input focus, the code will automatically enter itself.
   
Did you read the documentation of your barcode scanner? Does it provide an API?
:)
   
It is allowed to download free ASP.NET Barcode Generator SDK package. Unzip it to get the TarCode Barcode for ASP.NET.dll.

Add to Toolbox
- Start with a new Visual Studio and right-click the "Toolbox"
- Select "Choose Items..." and then click "Browse..."
- Choose "TarCode Barcode for ASP.NET.dll"
- Click "Open", and now the required dll is added to the toolbox

Add to Reference
- Start with a new Visual Studio and move to "Solution Explore..."
- Right-click "WindowsApplication" to choose "Add Reference..."
- Switch to "Browse..." to select "TarCode Barcode for ASP.NET.dll"
- Click "OK", and now the required dll is added to the reference

http://globalvision.com.vn/en/barcodes-scanner-pc-1.htm[^]
   
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900