Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
In a textbox I want to enter code 65 to find a row in a table. What happens is that at the
instance of entering 6 itself the event textbox_textchanged is getting trigerred and it reads that
row in the table which belongs to code 6. I want to enter the full code and at the click of enter key or tab key that event should get trigerred. How to do it?
Posted

1 solution

Don't use the TextChanged event - it triggers every single time the text in the textbox changes.
Instead, use the Validated event.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900