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 6157313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:45:50+00:00 2026-05-23T20:45:50+00:00

I have a form which I read data to textbox from a barcode reader.

  • 0

I have a form which I read data to textbox from a barcode reader.
and there are some codded barcodes like this

W12346S1 is first step of a work
W12346S2 is second step of a work
W12346S3 is third step of a work
...
U123 is a user he read his code to make process
M456 is a machine user do the work on this machine.

so I want to write data to true textboxes from firs char (W, U, M) in form_KeyDown() event or one different.

(
true textboxes mean if user read a barcode which start with W key let the program write the barcode data to “work tekxtbox” or if he read abarcode which start with U program will write the barcode data to user textbox etc…

)
I wanna make this let the codes select its own textboxes. what is the way?

note: if I use textbox1.Text += e.KeyData.ToString();
the output is : ShiftKey, ShiftW, ShiftD1D2D3D4D6ShiftKey, ShiftS, ShiftD2 W12346S2
for W12346S2

  • 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-23T20:45:51+00:00Added an answer on May 23, 2026 at 8:45 pm

    Can’t you just read in the text and have something like this:

    string FirstChar = BarcodeString.Substring(0,1);
    if (FirstChar.Equals("W"))
        WorkTextBox.Text = BarcodeString;
    if (FirstChar.Equals("U"))
        UserTextBox.Text = BarcodeString;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have link(127.0.0.1:8000/read) which contains json data.how to read a json data from link
I have a project in which I am expected to read data from a
I have a form in which the user can choose a component type from
I have a C# form into which I've placed a left-docked MenuStrip . This
I have CustomForm inherited from Form which implements a boolean property named Prop .
I have a form which contains a whole heap of data entry fields that
I have a form which I would like to store the values of in
I have data comming back from web service in the form of a ObservableCollection<string>
In my model named Profile_model I have this function which retrieves profile data for
I'm working on an intermediary form that will gather some data from the user

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.