Hello,
This is more a rethorical question, but I have been asked by one of my coworkers and I can't give a satisfactory answer.
So, having a form with some controls on it, is there any method to know which event cause the LostFocus event of a given control?
To be more specific, let say we have a form with a TextBox, two ComboBoxes, and two Command buttons. In the LostFocus method of the TextBox we have some validation code but we don't want this code to execute when user click the "Exit" button.
Also, we want this code to execute if user click on any other controls.
Any suggestions?
Thank you in advance!
worky
This is more a rethorical question, but I have been asked by one of my coworkers and I can't give a satisfactory answer.
So, having a form with some controls on it, is there any method to know which event cause the LostFocus event of a given control?
To be more specific, let say we have a form with a TextBox, two ComboBoxes, and two Command buttons. In the LostFocus method of the TextBox we have some validation code but we don't want this code to execute when user click the "Exit" button.
Also, we want this code to execute if user click on any other controls.
Any suggestions?
Thank you in advance!
worky