Windows Develop Bookmark and Share   
 index > Windows Forms General > Using USB Scanner with Winforms app
 

Using USB Scanner with Winforms app

I am interested in using Winforms app with a USB barcode scanner. I would like the barcode to be automatically read when it's scanned by the scanner into a textbox in my windows form.
Does Microsoft have anything that can be used with .Net Framework 3.5?

Thanks
Sunil
sun21170
sun21170  Wednesday, September 09, 2009 2:34 PM
Hi,

Most USB scanners act as keyboard devices, so as long as the focus is in the correct field when the barcode is scanned, the barcode will be entered as text into the field like you want. This is easiest.

If you want a solution that doesn't involve managing focus, try the Pos .Net library which allows you to access many classes of device including barcode scanners. The issue with this, however, is you will need a 'service object' for which ever scanner you pick (usually available from the hardware vendor). You will also need to reconfigure the scanner so it doesn't act like a keyboard device, in order to use it with Pos .Net.
Yort  Thursday, September 10, 2009 1:25 AM

Check first with the barcode scanner company, they may provide a library to do it, either unmanaged C\C++or .Net would be great. Otherwise you'll have to dive into the world of USB in .Net, which is quite a ____.

ScottyDoesKnow  Wednesday, September 09, 2009 3:41 PM
Hi,

Most USB scanners act as keyboard devices, so as long as the focus is in the correct field when the barcode is scanned, the barcode will be entered as text into the field like you want. This is easiest.

If you want a solution that doesn't involve managing focus, try the Pos .Net library which allows you to access many classes of device including barcode scanners. The issue with this, however, is you will need a 'service object' for which ever scanner you pick (usually available from the hardware vendor). You will also need to reconfigure the scanner so it doesn't act like a keyboard device, in order to use it with Pos .Net.
Yort  Thursday, September 10, 2009 1:25 AM

Hi,

I found your question has been answered in this thread: http://social.msdn.microsoft.com/Forums/en-US/posfordotnet/thread/7c283479-b8b4-43b1-be8b-26306abfba8f.

Do you need further help?

Best regards,

Ling Wang


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Thursday, September 17, 2009 8:15 AM

We are changing the issue type to “General Discussion�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by opening the Options list at the top of the post window, and changing the type. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Monday, September 21, 2009 2:22 AM
The answer is in one of the replies by Yort.

"Hi,

Most USB scanners act as keyboard devices, so as long as the focus is in the correct field when the barcode is scanned, the barcode will be entered as text into the field like you want. This is easiest.

If you want a solution that doesn't involve managing focus, try the Pos .Net library which allows you to access many classes of device including barcode scanners. The issue with this, however, is you will need a 'service object' for which ever scanner you pick (usually available from the hardware vendor). You will also need to reconfigure the scanner so it doesn't act like a keyboard device, in order to use it with Pos .Net."
sun21170
sun21170  Thursday, October 08, 2009 2:35 AM

You can use google to search for other answers

Custom Search

More Threads

• equivalent of uint in vb.net?
• Problem while handling excel file
• Controls of Form could auto fill with the form size?
• Designer Serialization ordering?
• Difference between Mainmenu and MenuStrip (VS 2003 and 2005)
• Why does it say I have a nullReference?
• help plzzz, strange result
• Dynamically create object determined at run time
• Developer Express who use?? please respond!!
• Skin