Solved

Disable manual entry but not the scanner

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now