Click here to Skip to main content
16,004,977 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
please send the sample code if possible
Posted

A TextBox only has one way for you to get at it's data - TextBox.Text
 
Share this answer
 
Nobody will just send source code like that. Is this some sort of code charity?

Have you used search? i have and there are several questions in the pogramming boards relating to this.

Here is one example
http://www.codeproject.com/Messages/3310235/Text-Cahnging-Whith-BarCode-Reader-in-TextBox-Csha.aspx[^]

Basically the scanner will just inject a string into the keyboard stream.

So it could be as simple as ensuring text box has the focus and then activate the scanner, or it could be a lot harder, and you may have to use SDK's / API's from the scanner OEM.

Go investigate, don't just scrounge.
 
Share this answer
 

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