Is there a way to detect what an object is losing focus to.
Here's my situation, i have these LostFocus() functions that i use to validate data in a TextBox, If the data is invalid, i just call tb.Focus() to not let them out of the box, now here's the problem, i have an abort button, that should just wipe all the data in the TextBoxes clear and let them start over. I dont want them to have to clear out the box that they are in before they can hit the abort button. So, is their a way to say (if im losing focus to the abort button, just clear
me out and start over?) or am i going at this the wrong way?
Bart
Here's my situation, i have these LostFocus() functions that i use to validate data in a TextBox, If the data is invalid, i just call tb.Focus() to not let them out of the box, now here's the problem, i have an abort button, that should just wipe all the data in the TextBoxes clear and let them start over. I dont want them to have to clear out the box that they are in before they can hit the abort button. So, is their a way to say (if im losing focus to the abort button, just clear
me out and start over?) or am i going at this the wrong way?
Bart