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. Visual Studio
  4. retrieve article using barcode reader

retrieve article using barcode reader

Scheduled Pinned Locked Moved Visual Studio
helpquestiondatabaselearning
7 Posts 3 Posters 9 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.
  • M Offline
    M Offline
    Member_14192216
    wrote on last edited by
    #1

    good evening everyone, I'm a beginner in visual basic, and I would like to ask you for help. I made an application and I'm stuck somewhere where I can not get out. here is the problem in question my application is connected with an Access database and I wanted to retrieve the article in the table_item using a barcode reader and display it in a datagridview. Can someone help me with vb code? I would be grateful for everything ... thank you very much

    L D 2 Replies Last reply
    0
    • M Member_14192216

      good evening everyone, I'm a beginner in visual basic, and I would like to ask you for help. I made an application and I'm stuck somewhere where I can not get out. here is the problem in question my application is connected with an Access database and I wanted to retrieve the article in the table_item using a barcode reader and display it in a datagridview. Can someone help me with vb code? I would be grateful for everything ... thank you very much

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      As a "beginner", you have exceeded your level of incompetence. Baby steps first.

      The Master said, 'Am I indeed possessed of knowledge? I am not knowing. But if a mean person, who appears quite empty-like, ask anything of me, I set it forth from one end to the other, and exhaust it.' ― Confucian Analects

      M 1 Reply Last reply
      0
      • M Member_14192216

        good evening everyone, I'm a beginner in visual basic, and I would like to ask you for help. I made an application and I'm stuck somewhere where I can not get out. here is the problem in question my application is connected with an Access database and I wanted to retrieve the article in the table_item using a barcode reader and display it in a datagridview. Can someone help me with vb code? I would be grateful for everything ... thank you very much

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

        All the barcode scanner is going to do is stuff key strokes into whatever control happens to have the input focus at the time. That sounds easy until you realize that a user can just scan a barcode at any time and your app has to be able to handle that. So now you're getting into a situation where you have to program the barcode scanner with pre- and possibly post-fix character sequences and then your form has to be able to look at the keystrokes looking for the pre and post sequences and knowing when to not send keystrokes to the form and when not to. This isn't something for a beginner.

        Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
        Dave Kreskowiak

        M 1 Reply Last reply
        0
        • L Lost User

          As a "beginner", you have exceeded your level of incompetence. Baby steps first.

          The Master said, 'Am I indeed possessed of knowledge? I am not knowing. But if a mean person, who appears quite empty-like, ask anything of me, I set it forth from one end to the other, and exhaust it.' ― Confucian Analects

          M Offline
          M Offline
          Member_14192216
          wrote on last edited by
          #4

          I already have some knowledge in vb, but in this level I am that I am there my knowledge is limited, help me

          1 Reply Last reply
          0
          • D Dave Kreskowiak

            All the barcode scanner is going to do is stuff key strokes into whatever control happens to have the input focus at the time. That sounds easy until you realize that a user can just scan a barcode at any time and your app has to be able to handle that. So now you're getting into a situation where you have to program the barcode scanner with pre- and possibly post-fix character sequences and then your form has to be able to look at the keystrokes looking for the pre and post sequences and knowing when to not send keystrokes to the form and when not to. This isn't something for a beginner.

            Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
            Dave Kreskowiak

            M Offline
            M Offline
            Member_14192216
            wrote on last edited by
            #5

            I already have some knowledge in vb, but in this level I am that I am there my knowledge is limited, I already programmed the code but when the reader scans the article appears in the datagridview but when I try to add the 2nd article the first one disappears. I specify that I use the event textChanged ... help me

            D 1 Reply Last reply
            0
            • M Member_14192216

              I already have some knowledge in vb, but in this level I am that I am there my knowledge is limited, I already programmed the code but when the reader scans the article appears in the datagridview but when I try to add the 2nd article the first one disappears. I specify that I use the event textChanged ... help me

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

              It's probably because you're just binding the grid to the result returned by the query. That is NOT a cumulative operation. It doesn't automatically add the new rows to the datasource you bound the grid to. You have to maintain your own list of items to display in the grid, adding the result of each query to this list. You can then bind the grid to the list instead of the result directly from the query.

              Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
              Dave Kreskowiak

              M 1 Reply Last reply
              0
              • D Dave Kreskowiak

                It's probably because you're just binding the grid to the result returned by the query. That is NOT a cumulative operation. It doesn't automatically add the new rows to the datasource you bound the grid to. You have to maintain your own list of items to display in the grid, adding the result of each query to this list. You can then bind the grid to the list instead of the result directly from the query.

                Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
                Dave Kreskowiak

                M Offline
                M Offline
                Member_14192216
                wrote on last edited by
                #7

                Thank you Dave

                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