Text Cahnging Whith BarCode Reader in TextBox C#
-
Hi All How do I know if the text(string) is written in the in TextBox in C# Windows Application Is From Barcode Reader or From user of the system . thanks :rose:
Thaer
-
Hi All How do I know if the text(string) is written in the in TextBox in C# Windows Application Is From Barcode Reader or From user of the system . thanks :rose:
Thaer
Could you clarify your question with some more detail...
Thanks Md. Marufuzzaman
Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you. I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.
-
Hi All How do I know if the text(string) is written in the in TextBox in C# Windows Application Is From Barcode Reader or From user of the system . thanks :rose:
Thaer
Depending upon the code base you have, you probably can't directly, as once the the barcode is in the text box, it is just a string. You have a couple of options, depending upon why you care that the reader is the source. 1. Record the fact the barcode has been read by a reader when the reading has been done (Reliable) 2. Check that the textbox text is in the form of a barcode number, assuming you have one. This isn't reliable, as the user could enter the number directly or it could come from another source.
CCC solved so far: 2 (including a Hard One!) 37!?!! - Randall, Clerks
-
Hi All How do I know if the text(string) is written in the in TextBox in C# Windows Application Is From Barcode Reader or From user of the system . thanks :rose:
Thaer
Some barcode scanners have the ability to add a delimiter character to the start or end of the string the read will return. You can then check for this delimiter character to see if it came from your reader.