Hi All,
I have some code in the lost focus event of a text box on my form. If this control has the focus when the user clicks the close button of the form, the code in the lostfocus method is of course executed. I want the code to run if the user leaves the control by tabbing, hitting enter, clicking elsewhere etc. , but not if the user is exiting the form.
Any suggestions?
Most Grateful
Geraint Evans
I have some code in the lost focus event of a text box on my form. If this control has the focus when the user clicks the close button of the form, the code in the lostfocus method is of course executed. I want the code to run if the user leaves the control by tabbing, hitting enter, clicking elsewhere etc. , but not if the user is exiting the form.
Any suggestions?
Most Grateful
Geraint Evans