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. input a barecode

input a barecode

Scheduled Pinned Locked Moved C#
csharphelptutorial
12 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
    tonaxxl
    wrote on last edited by
    #1

    please some one tell i have a barcode scan device and i wanna to write a code using c# to get the barcode from the barecode device i will make that by making a thread in my code to detect any input from the barecode then: _how to make that connection between my code and the barecode device so that user can input the serial of any product from the keyboard (by manualy focusing at text box) or from the barecode device (without focusing at any thing) please some one can help me in that senaro i wanna just an overview idea about how to make that way of code :-D::::tonaxxl::::::-D

    D T A C 4 Replies Last reply
    0
    • T tonaxxl

      please some one tell i have a barcode scan device and i wanna to write a code using c# to get the barcode from the barecode device i will make that by making a thread in my code to detect any input from the barecode then: _how to make that connection between my code and the barecode device so that user can input the serial of any product from the keyboard (by manualy focusing at text box) or from the barecode device (without focusing at any thing) please some one can help me in that senaro i wanna just an overview idea about how to make that way of code :-D::::tonaxxl::::::-D

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You already asked this question and got the answer to it. It all depends on how you barcode scanner works. If it injects data into the keyboard stream, then all you have to do is make sure that the focus is on the textbox. If it sends data to the PC through another means, like the Serial Port, then you'll have to write a communication class to handle that kind of input. It all depends on the barcode device and how it sends data to the PC... RageInTheMachine9532

      1 Reply Last reply
      0
      • T tonaxxl

        please some one tell i have a barcode scan device and i wanna to write a code using c# to get the barcode from the barecode device i will make that by making a thread in my code to detect any input from the barecode then: _how to make that connection between my code and the barecode device so that user can input the serial of any product from the keyboard (by manualy focusing at text box) or from the barecode device (without focusing at any thing) please some one can help me in that senaro i wanna just an overview idea about how to make that way of code :-D::::tonaxxl::::::-D

        T Offline
        T Offline
        tonaxxl
        wrote on last edited by
        #3

        If it sends data to the PC through another means, like the Serial Port, then you'll have to write a communication class to handle that kind of input. :::::then how to make that communication class that listen to the serial port ? i wanna to find the way to to connect to that serialport i dont know how to make that :-O

        D 1 Reply Last reply
        0
        • T tonaxxl

          If it sends data to the PC through another means, like the Serial Port, then you'll have to write a communication class to handle that kind of input. :::::then how to make that communication class that listen to the serial port ? i wanna to find the way to to connect to that serialport i dont know how to make that :-O

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          First thing's first... The make and model of the scanner would be helpful. Do you have all the docs on the scanner? Do you know the communication requirements of the scanner? Do you know what format the data comes in? Do you have the commands the scanner understands? The formats of those commands? If not, your wasting your time... RageInTheMachine9532

          T 1 Reply Last reply
          0
          • D Dave Kreskowiak

            First thing's first... The make and model of the scanner would be helpful. Do you have all the docs on the scanner? Do you know the communication requirements of the scanner? Do you know what format the data comes in? Do you have the commands the scanner understands? The formats of those commands? If not, your wasting your time... RageInTheMachine9532

            T Offline
            T Offline
            tonaxxl
            wrote on last edited by
            #5

            no i have nothing from what u say but i wanna the whole story of using the barecode if have a breif idea about the way to handle the barecode numder from the any kind of serial barecode scanner i dont know any thing about that stuff and i ask any one to help me by him self or by sending me any url to help me in that stuff and i search and found all the code write in that is for the way to print the barecode but i wanna to input it and how to handle it thank u and i hope i make my self more clearar

            D 1 Reply Last reply
            0
            • T tonaxxl

              please some one tell i have a barcode scan device and i wanna to write a code using c# to get the barcode from the barecode device i will make that by making a thread in my code to detect any input from the barecode then: _how to make that connection between my code and the barecode device so that user can input the serial of any product from the keyboard (by manualy focusing at text box) or from the barecode device (without focusing at any thing) please some one can help me in that senaro i wanna just an overview idea about how to make that way of code :-D::::tonaxxl::::::-D

              A Offline
              A Offline
              Apusnaias
              wrote on last edited by
              #6

              hi, in order to help you, you should have a look at this tut -> http://www.devhood.com/tutorials/tutorial\_details.aspx?tutorial\_id=320 that's all you need :)

              T 1 Reply Last reply
              0
              • T tonaxxl

                no i have nothing from what u say but i wanna the whole story of using the barecode if have a breif idea about the way to handle the barecode numder from the any kind of serial barecode scanner i dont know any thing about that stuff and i ask any one to help me by him self or by sending me any url to help me in that stuff and i search and found all the code write in that is for the way to print the barecode but i wanna to input it and how to handle it thank u and i hope i make my self more clearar

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

                If you don't have any of that information, you're going to have VERY difficult time doing this. Basically, all you've told use is that you have a barcode scanner and that you want to write a program. You haven't given us ANY information to work with, yet you want help with writing code. All I can tell you is to search the web for code samples, search for the manufacturers website and search for the technical docs on the scanner. You can start with the code in the previous post for Serial Comm in VB.NET and you can also look at the VB6 code here for a barcode scanner example. Don't know if it's going to work for you because you haven't been able to tell us what barcode formats the scanner can read. http://www.vbexplorer.com/vb/scripts/ShowCode.asp?txtCodeId=47696&lngWId=-1[^] RageInTheMachine9532

                T 1 Reply Last reply
                0
                • T tonaxxl

                  please some one tell i have a barcode scan device and i wanna to write a code using c# to get the barcode from the barecode device i will make that by making a thread in my code to detect any input from the barecode then: _how to make that connection between my code and the barecode device so that user can input the serial of any product from the keyboard (by manualy focusing at text box) or from the barecode device (without focusing at any thing) please some one can help me in that senaro i wanna just an overview idea about how to make that way of code :-D::::tonaxxl::::::-D

                  C Offline
                  C Offline
                  cjengler
                  wrote on last edited by
                  #8

                  I just finished a point of sale system for my universities bookstore. I had a choice of scanners and choose the keyboard wedge scanner. It is the easiest to incorporate into the system as there is no special coding involved. I simply plugged it in, programmed the scanner with the neccessay, and supplied, barcode initializations, and then scanned a code. Sure enough it placed the numeric representation of the code in the textbox that had focus at the time. No special interface coding needed. I would suggest you look into a keyboard wedge type of scanner. Joe

                  1 Reply Last reply
                  0
                  • D Dave Kreskowiak

                    If you don't have any of that information, you're going to have VERY difficult time doing this. Basically, all you've told use is that you have a barcode scanner and that you want to write a program. You haven't given us ANY information to work with, yet you want help with writing code. All I can tell you is to search the web for code samples, search for the manufacturers website and search for the technical docs on the scanner. You can start with the code in the previous post for Serial Comm in VB.NET and you can also look at the VB6 code here for a barcode scanner example. Don't know if it's going to work for you because you haven't been able to tell us what barcode formats the scanner can read. http://www.vbexplorer.com/vb/scripts/ShowCode.asp?txtCodeId=47696&lngWId=-1[^] RageInTheMachine9532

                    T Offline
                    T Offline
                    tonaxxl
                    wrote on last edited by
                    #9

                    i need any code example i mean it i need any example but with the c# and i need a brief flow chart of how this any serial port barcode device should be used all what i need is a brief flow chart with sample of code if possible :doh::doh::doh::doh::doh::rose::rose::rose::):-D:-D

                    D 1 Reply Last reply
                    0
                    • A Apusnaias

                      hi, in order to help you, you should have a look at this tut -> http://www.devhood.com/tutorials/tutorial\_details.aspx?tutorial\_id=320 that's all you need :)

                      T Offline
                      T Offline
                      tonaxxl
                      wrote on last edited by
                      #10

                      thank u man so much that is so helpful that what i need from where r u ? :cool:

                      1 Reply Last reply
                      0
                      • T tonaxxl

                        i need any code example i mean it i need any example but with the c# and i need a brief flow chart of how this any serial port barcode device should be used all what i need is a brief flow chart with sample of code if possible :doh::doh::doh::doh::doh::rose::rose::rose::):-D:-D

                        D Offline
                        D Offline
                        Dave Kreskowiak
                        wrote on last edited by
                        #11

                        There is a VB6 example here[^]. I can't find any .NET examples anywhere. RageInTheMachine9532

                        T 1 Reply Last reply
                        0
                        • D Dave Kreskowiak

                          There is a VB6 example here[^]. I can't find any .NET examples anywhere. RageInTheMachine9532

                          T Offline
                          T Offline
                          tonaxxl
                          wrote on last edited by
                          #12

                          thank u so much for ur effort with me :-O

                          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