Hi,
I have a USB scanner that I use to input into a textbox. The issue is that I'll need to check for a barcode that is 6 digits long and another that is 9 digits long. Since the characters come in one at a time the 6 char length condition will always be satisfied. Has anyone had to deal with something like this?
Code Samle:
Code:private void txtTicketID_TextChanged(object sender, EventArgs e) { if (txtTicketID.Text.Length == 9) { ..... } if (txtTicketID.Text.Length == 6) { ..... }




Reply With Quote
