Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Text Cahnging Whith BarCode Reader in TextBox C#

Text Cahnging Whith BarCode Reader in TextBox C#

Scheduled Pinned Locked Moved C#
csharpquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Thaer Hamael
    wrote on last edited by
    #1

    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

    M K D 3 Replies Last reply
    0
    • T Thaer Hamael

      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

      M Offline
      M Offline
      Md Marufuzzaman
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • T Thaer Hamael

        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

        K Offline
        K Offline
        Keith Barrow
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • T Thaer Hamael

          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

          D Offline
          D Offline
          DJ Matthews
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups