By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,397 Members | 1,393 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,397 IT Pros & Developers. It's quick & easy.

Inputing data without hitting a button or enter

P: n/a
I have a program where were are scanning bar codes for a scanner
hooked up to a laptop via USB. The scanner adds the CRLF at the end
of
every scan. I need to figure out how to make the program to caputer
the number scanned so i can use it in my program. Right now i have
them scanning the item and then hitting a button on the form to enter
the number and I want to make it so they do not have to hit the
button. Can anyone help me on this.

Oct 19 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
On Oct 19, 9:29 am, id10t error <tubbz...@gmail.comwrote:
I have a program where were are scanning bar codes for a scanner
hooked up to a laptop via USB. The scanner adds the CRLF at the end
of
every scan. I need to figure out how to make the program to caputer
the number scanned so i can use it in my program. Right now i have
them scanning the item and then hitting a button on the form to enter
the number and I want to make it so they do not have to hit the
button. Can anyone help me on this.
Most usb bar code readers act as a keyboard emulator, so you should be
able to use the typical keypress/keydown/keyup events.

Thanks,

Seth Rowe

Oct 19 '07 #2

P: n/a
On Oct 19, 10:48 am, rowe_newsgroups <rowe_em...@yahoo.comwrote:
On Oct 19, 9:29 am, id10t error <tubbz...@gmail.comwrote:
I have a program where were are scanning bar codes for a scanner
hooked up to a laptop via USB. The scanner adds the CRLF at the end
of
every scan. I need to figure out how to make the program to caputer
the number scanned so i can use it in my program. Right now i have
them scanning the item and then hitting a button on the form to enter
the number and I want to make it so they do not have to hit the
button. Can anyone help me on this.

Most usb bar code readers act as a keyboard emulator, so you should be
able to use the typical keypress/keydown/keyup events.

Thanks,

Seth Rowe
I have tried that and it only grabs the first number of the barcode.
Do you know anyway around this?

Oct 19 '07 #3

P: n/a
On Oct 19, 10:53 am, id10t error <tubbz...@gmail.comwrote:
On Oct 19, 10:48 am, rowe_newsgroups <rowe_em...@yahoo.comwrote:
On Oct 19, 9:29 am, id10t error <tubbz...@gmail.comwrote:
I have a program where were are scanning bar codes for a scanner
hooked up to a laptop via USB. The scanner adds the CRLF at the end
of
every scan. I need to figure out how to make the program to caputer
the number scanned so i can use it in my program. Right now i have
them scanning the item and then hitting a button on the form to enter
the number and I want to make it so they do not have to hit the
button. Can anyone help me on this.
Most usb bar code readers act as a keyboard emulator, so you should be
able to use the typical keypress/keydown/keyup events.
Thanks,
Seth Rowe

I have tried that and it only grabs the first number of the barcode.
Do you know anyway around this?
I believe the event(s) should fire for each number? Also what is the
barcode scanner inputting the data into, a textbox? If so you could
just use the TextChanged event to start your code.

Thanks,

Seth Rowe

Oct 19 '07 #4

P: n/a
"id10t error" <tu******@gmail.comwrote in message
news:11*********************@i13g2000prf.googlegro ups.com...
On Oct 19, 10:48 am, rowe_newsgroups <rowe_em...@yahoo.comwrote:
>On Oct 19, 9:29 am, id10t error <tubbz...@gmail.comwrote:
I have a program where were are scanning bar codes for a scanner
hooked up to a laptop via USB. The scanner adds the CRLF at the end
of
every scan. I need to figure out how to make the program to caputer
the number scanned so i can use it in my program. Right now i have
them scanning the item and then hitting a button on the form to enter
the number and I want to make it so they do not have to hit the
button. Can anyone help me on this.

Most usb bar code readers act as a keyboard emulator, so you should be
able to use the typical keypress/keydown/keyup events.

Thanks,

Seth Rowe

I have tried that and it only grabs the first number of the barcode.
Do you know anyway around this?
Seth,

Read them all and look for the CRLF.

Stan

Oct 21 '07 #5

P: n/a
Are you done with the input when the scanner sends the 'enter'? Can you make
the button the 'default' button for the form? Otherwise, keydown or keypress
event to look for the 'enter' key and take whatever action you need.
--
Terry
"id10t error" wrote:
I have a program where were are scanning bar codes for a scanner
hooked up to a laptop via USB. The scanner adds the CRLF at the end
of
every scan. I need to figure out how to make the program to caputer
the number scanned so i can use it in my program. Right now i have
them scanning the item and then hitting a button on the form to enter
the number and I want to make it so they do not have to hit the
button. Can anyone help me on this.

Oct 22 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.