retrieve article using barcode reader
-
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
-
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
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
-
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
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 -
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
I already have some knowledge in vb, but in this level I am that I am there my knowledge is limited, help me
-
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 KreskowiakI 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
-
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
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 -
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 KreskowiakThank you Dave