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 10 3721
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.
Thanks Brian,
any idea about a control that is invisible and may receive the key strokes?
"Brian Tkatch" <Ma***********@ThePentagon.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.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.
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.
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.comwrote in message
news:uW***************@TK2MSFTNGP05.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
Samuel Shulman wrote:
Thanks Brian,
any idea about a control that is invisible and may receive the key strokes?
"Brian Tkatch" <Ma***********@ThePentagon.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.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.
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.
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_grierNOSPAM@.msn.comwrote in message
news:uD**************@TK2MSFTNGP03.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.
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_grierNOSPAM@.msn.comwrote in message
news:uD**************@TK2MSFTNGP03.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.acronymfinder.com>, HTH.
B.
Thanks,
Samuel
"Brian Tkatch" <Ma***********@ThePentagon.comwrote in message
news:11*********************@m73g2000cwd.googlegro ups.com...
>
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_grierNOSPAM@.msn.comwrote in message news:uD**************@TK2MSFTNGP03.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.acronymfinder.com>, HTH.
B. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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
|
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...
|
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...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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,...
|
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...
| |