473,765 Members | 2,070 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Barcode scanning

I assume that when I use a barcode reader (at least some of them) it will
input the number as though it was entered in via the keyboard

How can I then get the value without setting to focus to a textbox control I
don't want the user to see the scanned number but I still need a way to read
the value, in addition, I need an event that will be fired once the barcode
was read in full so I know it actually finished reading

Thank you,
Samuel
Jul 18 '06 #1
10 3754
ive never done it myself but a quick look at thecodeproject brought about these

http://thecodeproject.com/vb/net/bcreader2of5.asp
http://thecodeproject.com/vb/net/demmvbscan.asp
http://thecodeproject.com/vb/net/Bar...gAndVerify.asp
--
-iwdu15
Jul 18 '06 #2

Samuel Shulman wrote:
I assume that when I use a barcode reader (at least some of them) it will
input the number as though it was entered in via the keyboard

How can I then get the value without setting to focus to a textbox control I
don't want the user to see the scanned number but I still need a way to read
the value, in addition, I need an event that will be fired once the barcode
was read in full so I know it actually finished reading

Thank you,
Samuel
Just a guess.

On the form's keypress start a one-second timer and capture all keys.
In the timer tick event, (turn the timer off and) validate the keys. If
it is a barcode, deal with it, otherwise give focus and set the text
property to the captured keys.

Or something like that. That idea would need a lot of tweaking to
handle all cases.

B.

Jul 19 '06 #3
Thanks Brian,
any idea about a control that is invisible and may receive the key strokes?
"Brian Tkatch" <Ma***********@ ThePentagon.com wrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.com.. .
>
Samuel Shulman wrote:
>I assume that when I use a barcode reader (at least some of them) it will
input the number as though it was entered in via the keyboard

How can I then get the value without setting to focus to a textbox
control I
don't want the user to see the scanned number but I still need a way to
read
the value, in addition, I need an event that will be fired once the
barcode
was read in full so I know it actually finished reading

Thank you,
Samuel

Just a guess.

On the form's keypress start a one-second timer and capture all keys.
In the timer tick event, (turn the timer off and) validate the keys. If
it is a barcode, deal with it, otherwise give focus and set the text
property to the captured keys.

Or something like that. That idea would need a lot of tweaking to
handle all cases.

B.

Jul 19 '06 #4
Hi,

IMO, attempts to do this (setting focus to a textbox or other object to
receive the scans) is doomed to "limited" success. The best solution, IMO,
is to insist on a serial barcode reader (or a USB reader that provides a
serial -- not HID emulation). Then, no matter what the user does, the scans
will be delivered to the appropriate code for processing. Fortunately,
serial readers are not much more expensive that those that emulate a
keyboard (perhaps and extra $15), but the operational experience is MUCH
better.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
Jul 19 '06 #5
PGC
Hi Samuel,

A simple keyboard "wedge" type scanner will do what you want and most can be
programmed to send some "end of message" character although this is usually
a CR. Your keypress event can trap the EndOfMessage and then lookup the
product table (or whatever) as required. You will need to display the
textbox to capture the barcode data for a number of good reasons ...
The keyboard requires an input focus, the user gets the visual feedback
(good for problem solving), and finally, if the barcode is unreadable, (you
always get stuck behind these people at checkouts), the user at least has
the opportunity of keying it in!!

If you really don't want the gui to capture the barcode data then Dick's
suggestion (USB or Serial) port scanner is the best option but you will need
to learn about how to program for these (serial port) devices. You will also
need to figure out what to do about unreadable or mis-read codes.

Hope this helps.

Paul

"Samuel Shulman" <sa************ @ntlworld.comwr ote in message
news:uW******** *******@TK2MSFT NGP05.phx.gbl.. .
>I assume that when I use a barcode reader (at least some of them) it will
input the number as though it was entered in via the keyboard

How can I then get the value without setting to focus to a textbox control
I don't want the user to see the scanned number but I still need a way to
read the value, in addition, I need an event that will be fired once the
barcode was read in full so I know it actually finished reading

Thank you,
Samuel

Jul 19 '06 #6

Samuel Shulman wrote:
Thanks Brian,
any idea about a control that is invisible and may receive the key strokes?
"Brian Tkatch" <Ma***********@ ThePentagon.com wrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.com.. .

Samuel Shulman wrote:
I assume that when I use a barcode reader (at least some of them) it will
input the number as though it was entered in via the keyboard

How can I then get the value without setting to focus to a textbox
control I
don't want the user to see the scanned number but I still need a way to
read
the value, in addition, I need an event that will be fired once the
barcode
was read in full so I know it actually finished reading

Thank you,
Samuel
Just a guess.

On the form's keypress start a one-second timer and capture all keys.
In the timer tick event, (turn the timer off and) validate the keys. If
it is a barcode, deal with it, otherwise give focus and set the text
property to the captured keys.

Or something like that. That idea would need a lot of tweaking to
handle all cases.

B.
Nope.

I thought maybe the form got it first.

Either that or have one function handle all the form's control's
keypress events.

B.

Jul 19 '06 #7

Dick Grier wrote:
Hi,

IMO, attempts to do this (setting focus to a textbox or other object to
receive the scans) is doomed to "limited" success. The best solution, IMO,
is to insist on a serial barcode reader (or a USB reader that provides a
serial -- not HID emulation). Then, no matter what the user does, the scans
will be delivered to the appropriate code for processing. Fortunately,
serial readers are not much more expensive that those that emulate a
keyboard (perhaps and extra $15), but the operational experience is MUCH
better.

Dick
Yep. Just like to say i agree with this sentiment.

B.

Jul 19 '06 #8
Please excuse me for being so naive (I am new to POS systems)
What is IMO and what is HID

Thanks,
Samuel
"Dick Grier" <dick_grierNOSP AM@.msn.comwrot e in message
news:uD******** ******@TK2MSFTN GP03.phx.gbl...
Hi,

IMO, attempts to do this (setting focus to a textbox or other object to
receive the scans) is doomed to "limited" success. The best solution,
IMO, is to insist on a serial barcode reader (or a USB reader that
provides a serial -- not HID emulation). Then, no matter what the user
does, the scans will be delivered to the appropriate code for processing.
Fortunately, serial readers are not much more expensive that those that
emulate a keyboard (perhaps and extra $15), but the operational experience
is MUCH better.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.

Jul 19 '06 #9

Samuel Shulman wrote:
Please excuse me for being so naive (I am new to POS systems)
What is IMO and what is HID

Thanks,
Samuel
"Dick Grier" <dick_grierNOSP AM@.msn.comwrot e in message
news:uD******** ******@TK2MSFTN GP03.phx.gbl...
Hi,

IMO, attempts to do this (setting focus to a textbox or other object to
receive the scans) is doomed to "limited" success. The best solution,
IMO, is to insist on a serial barcode reader (or a USB reader that
provides a serial -- not HID emulation). Then, no matter what the user
does, the scans will be delivered to the appropriate code for processing.
Fortunately, serial readers are not much more expensive that those that
emulate a keyboard (perhaps and extra $15), but the operational experience
is MUCH better.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
IMO is "In My Opinion"
HID is "Human Interface Device"

Q:What does PC-MCIA stand for?
A:People Can't Memorize Complex Industry Acronyms

BTW, a good URL is <URL:www.acrony mfinder.com>, HTH.

B.

Jul 20 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
12213
by: CHANGE username to westes | last post by:
What are the most popular, and well supported, libraries of drivers for bar code scanners that include a Visual Basic and C/C++ API? My requirements are: - Must allow an application to be written to a single interface, but support many different manufacturers' barcode scanning devices. I do not want to be tied to one manufacturers' software interfaces. - Must support use of the scanner from Visual Basic, and ideally from C/C++ and...
1
14184
by: Chad | last post by:
Hello, I am working with a client who wants to integrate barcode scanning technology into a website I'm building for him (ASP and ASP.NET site). Specifically, he wants to use barcode scanning in his order fulfillment process. He wants an employee to bring up an order, then scan in the products being shipped with the order, then mark the order as processed. I've read posts that point to barcode scanners that will simulate
8
6417
by: DS | last post by:
Does anyone know anything about barcodes in Access. I don't want to create them in Access. I merely want to scan whats already been created. I need to scan Liquor bottles. I have the scanner hooked up. Any help is appreciated, Thanks DS
4
2225
by: teddysnips | last post by:
My clients want their employees to log in by scanning a barcode on their passes. I've set up a web page with a text box to capture the scanned barcode. Two questions. 1. Can anyone think of a neat way to authenticate the scanned barcode without any further user action? The barcodes I'm using to play with the system are the ones on my CDs which have an embedded CR, which nicely press the default ASP button, but I may not be able to...
1
3238
by: Bruce D | last post by:
I'm researching a VB .NET project that will have two functions: 1 - scan images using TWAIN drivers of scanner 2 - read barcode of that scanned image I've been researching many companies and was wondering if anyone had any recommendations of any options about the companies I've listed here. Your input is appreciated! The thing here is that I like Dosadi:EZTwain...but they don't offer barcode recognition. It seems these are the only...
2
1701
by: Camelduke | last post by:
My company is considering the development of a mobile device that integrates 2D barcode scanning among its features. However, our engineering team is stymied as they believe that we are unable to incorporate 2D barcode scanning technology without licensing the technology specifically from Symbol--which is obviously difficult to obtain and costly to implement (and effectively allows a potential competitor to control our ability to sell...
6
3383
by: Samuel Shulman | last post by:
I would like to add barcode functionality to my POS program How does one attach barcode reader is it usually USB port How can the program get the data read by the device Thank you, Samuel
2
9977
by: nmrpa91290 | last post by:
Hi, I am in the design phase of building a database that will track the productivity of my warehouse. I am thinking of using a barcode scanner to assist me with this. Employees will hopefully be scanning a barcode which will communicate to the computer that the employee did some type of task. Employees will be identified by ID badges which will contain string data to identify them and hopefully log them in. Is this a good way to keep...
7
4223
by: jim | last post by:
I need to have 2 simple barcode reader applications finished by midnight tonight. I have never written any barcode reader software and need any help that you may be able to offer. I do not know what type of barcode the user will have, so I need to be able to accept input from any industry standard barcode reader. I need to check the barcodes scanned to see if they are in a database of acceptable barcodes and simply show ACCEPT or...
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9398
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10156
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9951
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7375
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5419
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.