![]() |
|
[.NET] How to use Barcode scanner ? - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] How to use Barcode scanner ? (/showthread.php?tid=5845245) |
How to use Barcode scanner ? - Moe_Sharp - Jun 6, 2018 Hey HF community .. I have this problem , I want to scan the products with Bar code scanner To record them in database so I can later sell them through there Barcode . [sum : ] I want to Know how can I use bar code scanner with my application ? it's very Important , Please Help me 😭 .. RE: How to use Barcode scanner ? - aneeshkollam5 - Jun 7, 2018 you dont need any specific snippet or dll for doing this, barcode scanner itself will return the output as string , if scanner is attached to the pc. You can check the scanner by open a notepad and scan any barcode the text will appers in notepad. You need to set product code or batch as particular barcode of that product in databse, then you can pick the particular product from database by searching the barcode with query RE: How to use Barcode scanner ? - PabloEscarNark - Jun 7, 2018 (Jun 6, 2018 05:46 AM)Moe_Sharp Wrote: Hey HF community .. I have this problem , I want to scan the products with Bar code scanner To record them in database hey man you need to use a barcode api, i've found a free one on the internet you can use https://archive.codeplex.com/?p=freebarcode hope this helps. 🤝 RE: How to use Barcode scanner ? - itcorp - Jun 21, 2018 Mostly new devices like magnetic card scanner,barcode scanner they connect via usb and are treated like HID(Human interface device) or roughly as a keyboard ,who perform two operations during reading card value or barcode value. 1)The first operation is reading and returning output as string 2)Sending an key event,It's mostly enter key () So now you should have a wider picture of their implementation in your software,and your final solution would be next: 1)Define the control that is to receive the output of magnetic card or barcode scanner as an input 2)Do not let that control lose keyboard focus at any moment 3)Do a HID key filtering for numbers or letters in your case for numbers 4)Do a HID enter key filtering and rise logic for submit in order to save record in the database a simple solution would be: ![]() xaml Code <Window x:Class="MainWindow"code Code Class MainWindowif you need a different way of implementation you must use one of barcode api to achieve the goal RE: How to use Barcode scanner ? - Kali_Shadow - Jul 2, 2018 IT works Just like a keyboard Bro , No special code needed !! RE: How to use Barcode scanner ? - Moe_Sharp - Jul 6, 2018 (Jun 7, 2018 04:37 AM)PabloEscarNark Wrote: hey man you need to use a barcode api, i've found a free one on the internet you can use https :// archive.codeplex.com/?p=freebarcode Thanks for the link bro , I Appreciate it 🤝 , I'll check it right away |