I have code that checks validates the content entered into the textbox on it's 'leave' event. I also have code that runs in the event of the form closing that checks to see if the user has saved their data, and if not - prompts them for what to do. Pretty typical stuff... but it seems like it works as such:
* Enter content into textbox that will fail the validation code set in the 'leave' sub
* Close the program
* Form close event code informs the user they haven't saved
* After declining to save data - a message box appears from the leave event saying that the data entered was not valid.
* Application closes
Hmmm... maybe it's just something in my Form Close event? It's very simple though - I just have an if statement followed by some message boxes. Maybe I'll throw an "application.exit" at the end of my form close sub and see what happens.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.