Richard
Mon Apr 03 23:13:53 CDT 2006
Hi,
To elaborate a bit, I make sure that the textbox to receive the scan always
has the focus. I make the textbox not visible. If any other control on the
form can get the focus, I make sure this either results in going to some
other form, or immediately set the focus back to the scan textbox.
So the user knows what is going on, I have another textbox that shows what
the app has read. I guess this could also be the same textbox that receives
the barcode scan, but in my case the app reads the scan and interprets it.
This interpretation (perhaps a product name read from a table) is displayed
in the second textbox. If the scan is not recognized, I display an error. In
any case, I always return the focus to the first textbox so it can receive
the next scan (if appropriate).
If your app creates the barcodes, you can select the barcode format. Do
research on the formats available. The format I use includes a checksum
character and I verify this in my code. If the checksum is wrong, I display
an error in the second textbox.
The code I use on PocketPC is almost identical to the code I use on a
desktop.
--
Richard
Microsoft MVP Scripting and ADSI
Hilltop Lab -
http://www.rlmueller.net
"<ctacke/> opennetcf com>" <ctacke<@.> wrote in message
news:enzW0r5VGHA.4424@TK2MSFTNGP15.phx.gbl...
> It's quite simple. Just like on the desktop, most scanners have a mode
> that simply inserts scan data to the keyboard stream, so if a textbox has
> focus and you scan, it gets text for the scanned item.
>
> -Chris
>
>
> <hack123@hotmail.com> wrote in message
> news:1144113251.857129.65100@j33g2000cwa.googlegroups.com...
>> G'Day all,
>> I am a fairly fluent developer in vb.net 03/05 and some basic c# also.
>> But I have never had anything to do with pocket pc / windows ce.
>> However I am now faced with the task of purchasing a barcode scanner
>> device (something like a symbol branded unit) that runs pocket pc 03/05
>> and writing an application that can scan in the data from the barcode
>> scanner on the end of it, pump it to a text/portable sql file, doing
>> checks to see if its been scanned before or not ect...
>> My main question is, is it hard to code an app that uses the barcode
>> scanner or is something that you just say: (pseudo code)
>>
>> on button click
>>
>> scan.scansomeitem.totext
>>
>> save text to file/sql
>>
>> end
>>
>> Do I have to do any crazy dll programming for the scanner part or??
>> I await your replies eagerly!!
>>
>> Dave.
>>
>
>