Solved

Disable manual entry but not the scanner

Posted on 2013-01-29
4
378 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
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…
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 antispam), the admini…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

751 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