knowing nothing about scanners, I MAY be able to answer your last
questions - if a scanner does indeed work like a keyboard, then you
can capture the text changed event, HOWEVER, you may find that this
event is fired as each digit is entered.  Therefore you should check
for an expected length, or build a system with a time-boxed buffer so
that you can make sure you have captured all of the barcode.

Then you can do the database lookup and display the results you need.

CK

PS. This is assuming you are using a WinForms application, if it is
webforms then you need to do some AJAXY stuff.

On 24 Sep, 13:28, Brock <[EMAIL PROTECTED]> wrote:
> I use a USB scanner and tried the notepad trick and it writes fine.
> One related question while we are on this topic... is it possible to
> scan a barcode with say a 10 digit number that has the same value in a
> database (that number being the key field) and have another field, the
> CompanyName, display immediately in a textbox?
> Thanks!
>
> On Sep 23, 4:47 am, "Grzegorz K" <[EMAIL PROTECTED]> wrote:
>
>
>
> >  Scanners works exactly like a keyboards. You can check it by opening a
> > notepad,word etc and scan a code, it should appears on word processor you
> > had open.
>
> > 2008/9/23 Arsalan Tamiz <[EMAIL PROTECTED]>
>
> > > Normally PS/2, barcode scanners send keystrokes. Which means when you scan
> > > the code, it comes in like someone typing the barcode through keyboard.
> > > Usually it ends on CrLf.
>
> > > And I haven't used the USB barcode scanners. Maybe they work in the same
> > > manner.
>
> > > On Mon, Sep 22, 2008 at 4:18 AM, Badawi <[EMAIL PROTECTED]> wrote:
>
> > >> Hi all of you,
>
> > >> I'm a newbie in C#.NET development and i need help in handling barcode
> > >> scanners within C# application.
> > >> How i can read barcodes from a barcode scanner (both types USB and PS/
> > >> 2)?
> > >> And if there is a way to read barcodes independently on the scanner
> > >> type (USB or PS/2), i will be so happy to know.
>
> > >> thanks in advance,
> > >> Badawi- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---

Reply via email to