If I open a Notepad and read a barcode from barcode scanner device and keep the focus on notepad it writes the Barcode on Notepad window. I just want the same output in my C# program, for that I have created a textbox
and keep the focus on my textbox and the output is what I wanted. Now if the case is I dont have a textbox
how should assign same string to some of my variable. I have done the research but got a lot of libraries which are reading it from images or some dlls for it. I am sure there is some easy way out for this.
Thanks for the help in advance
Set the forms KeyPreview event to true. Then wire up a handler for the Form KeyUp event and handle the keystrokes there. The data the scanner sends just looks like you pressing the keyboard to Windows so it will pass on the events to your application.