Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Disable manual entry but not the scanner

Posted on 2013-01-29
4
Medium Priority
?
399 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 1500 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

885 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