Close button does not entirely unload project
I have a project that fails to totally unload the app when the close button is selected ('X' in control box at top of the form). I have to put a button in the form to close the app completely from memory using something like:
Code:
Private Sub exitNow()
Unload Me
End Sub
Why will the app not unload with the 'Close' button on the form itself? What can I do to force it to unload all the way?
Re: Close button does not entirely unload project
How about using ;
Code:
Private Sub exitNow()
END
End Sub
or do you have some code in the Form_Unload Event ?
Quote:
Originally posted by rick7423
I have a project that fails to totally unload the app when the close button is selected ('X' in control box at top of the form). I have to put a button in the form to close the app completely from memory using something like:
Code:
Private Sub exitNow()
Unload Me
End Sub
Why will the app not unload with the 'Close' button on the form itself? What can I do to force it to unload all the way?
[Resolved]That's what I was looking for!!!
This is all good information!!! I was looking for the form_QueryUnload event!
Thanks for the help. I got it from here!