Hello, I am using Compact Framework for an Intermec CN3
I am watching a textbox's length and then automatically triggering an event when scanning a barcode (Using Code 128 barcodes)
private void txtBox_TextChanged(object sender, EventArgs e)
{
if (txtBox.Text.Length == 16)
{
DoMethod();
}
else
{
///Does nothing
}
}
The problem is, when a user manually enters in a 16 character code (If the barcode is unreadable) it will automatically trigger this event, I only want it to be automatically triggered when the scan button is pressed on the device. Unfortunately the way in which the device enters the string into the textbox is exactly the same as a user would enter it i.e. one character at a time. Can anyone see a logical way I could get around this?
Thank you