Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4545762
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T15:51:31+00:00 2026-05-21T15:51:31+00:00

I have two devices(KeyBoard and BarCodeScanner) and 2 textboxes(text box 1 and text box

  • 0

I have two devices(KeyBoard and BarCodeScanner) and 2 textboxes(text box 1 and text box 2).

Now I want to restrict user that he can only use keyboard in text box 1 and barcodescanner in text box 2.

How is this possible in C#?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T15:51:32+00:00Added an answer on May 21, 2026 at 3:51 pm

    You should have a look at this: Read data from Bar Code Scanner in .net (C#) windows application!

    So your scanner might send special characters to help you identify it the input was from a scanner, or maybe it provides you with an additional library you could use to detect such events.
    Let’s suppose thought the scanner acts identically to a keyboard without any special characters to help you know it was from a scanner and without any additional library from the manufacturer site you could use.
    Then what you could use is: measure the typing speed in the KeyDown event of the second textbox.

    I suspect the scanner enters the code instantly so you would have a huge typing speed measured.

    Then if the typing speed is greater than a threshold ( E.g. for humans the world speed record is somewhere around 1000 characters per minute) then you delete the text that was entered.
    It’s hacky, but I’ve got no better idea.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two physical iPod touch devices. If I try running a program that
Say I have two peripheral devices, both connected via PS/2 (such as as keyboard
I have a script that should be run on two devices at same time,
I have two Android devices. One is acting as a server and the other
As the question states, I have two ethernet devices I need to use. A
Sometimes we encounter some devices which have two or more SIM cards. So my
I'm trying to capture packets from two devices on my network. I have tcpdump
I have an I2C device that wants two inputs: a denominator and a numerator.
Have two actionsheet buttons and one modalviewcontroller on mainviewcontroller in application. Now for two
I have two application that need to talk to each other. App1 needs to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.