I have a form with a text box. If a user enters "END" I want to exit the program. In the LostFocus event, I do exactly that. If the user tabs off the field, everything works fine. If the user clicks in another field, I get the following error:
"Cannot access a disposed object named 'TextBox'"
What am I doing wrong?