Solved

Disable manual entry but not the scanner

Posted on 2013-01-29
4
366 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

786 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