Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > Pro VB.NET 2002/2003
|
Pro VB.NET 2002/2003 For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 23rd, 2008, 12:49 AM
Authorized User
 
Join Date: Apr 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to integrate a hand-held bar code scanner

I have to integrate a hand-held bar code scanner into my inventory software which was developed in C#,ASp.Net and Sql server 2005. The purpose of this scanner is just to read the barcode and save the number which is in this barcode in a table for further use. I just want to know which will be the cheap and best barcode scanner to purchase and how will i integrate this barcode scanner into my project. Please guide and help
 
Old February 25th, 2008, 01:06 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

I don't know the answer to the first part, but with regard to how t ointegrate it, my understanding is that the bar-code reader behaves just like the input was coming from the keyboard.
 
Old February 26th, 2008, 12:17 AM
Friend of Wrox
 
Join Date: Oct 2007
Posts: 130
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via AIM to urtrivedi
Default

Any barcode reader can be used.
You need to code keyboard event and trace crlf charcters in that event of any text box
(By default many barcode reader returns crlf after reading the code)
then u can use text box value to either retrived information from database or u can insert code to ur database, it is not very difficult to integrated barcode reader with your program


urt

Help yourself by helping someone.
 
Old March 4th, 2008, 05:44 AM
Authorized User
 
Join Date: Apr 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks for the reply. But can u pls tell me what are these 'crif' characters and where do i find information related to this.

thanks once again
 
Old March 4th, 2008, 06:06 AM
Friend of Wrox
 
Join Date: Oct 2007
Posts: 130
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via AIM to urtrivedi
Default

They are nothing but ascii characters, refer any ascii chart in any appendix of c/c++ book

CR; Carriage return; ascii code=13
LF; Line feed; ascii code=10
Whenever you press enter key in text box then keycode return in event is 13 (ascii code)
Visual basic has one constant defined for it "VbCrLf"
or you can directly use 13 and 10



urt

Help yourself by helping someone.





Similar Threads
Thread Thread Starter Forum Replies Last Post
hand code for datasets greenbriar BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 1 May 1st, 2008 05:42 AM
Bar Code Scanner dartcoach VB How-To 4 December 1st, 2006 10:13 PM
bar code+asp kumiko Classic ASP Basics 0 August 26th, 2006 10:30 AM
getting a cr with bar code scanner dbkester Access 9 April 21st, 2006 10:11 AM
Use Hand Held Scanner Mahavishnu Classic ASP Professional 1 November 16th, 2004 12:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.