[Winforms Application .NET 4.0 C#]
I have a textbox that receives data from a handheld barcode scanner.
I want my application to check if the text is valid without the user having to do anything.
Example rule:
- Text length =18 and starts with ‘1520’
- Text length =17 and starts with ‘0520’
Should i checkit with:
- TextChanged event?
- Add a timer to check the rules every 200-300ms?
something else?
TextChangedevent will suffice, I have implemented something similar in the past and you will only be notified once so you will have the full barcode on each scan.