pj8_8's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
11 (0.01 per day)
Joined:
09-March 09
Profile Views:
672
Last Active:
User is offline Aug 30 2012 11:40 PM
Currently:
Offline

Previous Fields

Dream Kudos:
0

Latest Visitors

Icon   pj8_8 has not set their status

Posts I've Made

  1. In Topic: textbox barcode reader problem

    Posted 7 Jun 2012

    View PostSkydiver, on 07 June 2012 - 08:37 AM, said:

    The issue is that most common barcode reader drivers go for the least common denominator by emulating keyboard input. If you have control over the barcode reader driver, tell it to splat everything in one go instead of inserting text one character at a time. Or better yet, if you could interrogate the bar code reader directly so that you are not at the mercy of the user who may change the settings.

    Anyway, there are two techniques:
    1. Use a timer. Keep resetting the timer when there is more text coming in. When the timer eventually expires, then do your database insert.
    2. Use the Validating or Validated event. This will require that user do some kind of interaction with the form to initiate the validation like changing the focus or clicking on an "Accept" button.



    Thanks.

    May i know the timer techniques can work for different scanner?

    TQ
  2. In Topic: textbox barcode reader problem

    Posted 7 Jun 2012

    Hi this my code when i scan the barcode.

        private void BarcodeTB_TextChanged(object sender, EventArgs e)
            {
                string barcode = BarcodeTB.Text;
    
                
                MessageBox.Show(barcode);
    
    
            }
    
    


    TQ.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me

Friends

pj8_8 hasn't added any friends yet.

Comments

pj8_8 has no profile comments yet. Why not say hello?