Solved

Disable manual entry but not the scanner

Posted on 2013-01-29
4
373 Views
Last Modified: 2013-02-09
Hello All

I want my C# code to disable manual entry in the textbox but not the scanner.
By using scanner only we can write in the textbox.How we will do it as by disabling the manual entry , I am not able to use scanner also.

Thanks in advance,
0
Comment
Question by:BYTECHINDIA
  • 2
  • 2
4 Comments
 
LVL 7

Expert Comment

by:Scobber
ID: 38834193
Im assuming you are talking about a barcode scanner.

You should be able to configure it as a virtual com port, 9600bps
Use that to capture the scanned data, through a io.serial.port

Make the textbox locked, and pipe the data straight onto the control.
0
 

Author Comment

by:BYTECHINDIA
ID: 38834792
Handling of scanner is not in our hand then by c# code only,can we handle it?
0
 
LVL 7

Accepted Solution

by:
Scobber earned 500 total points
ID: 38834825
Your last post seems very deep and philosophical. If the scanner (again assuming barcode) is behaving as a keyboard wedge, then no. as its emulating typing on the keyboard.
You can do it by reprogramming the reader as a virtual serial reader, (use scan codes) and use the io namespace in c#
0
 

Author Closing Comment

by:BYTECHINDIA
ID: 38872442
Thanks.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question