How to correctly terminate an application?
In the past I've usually added the following line to the KeyDown sub in order to end my applications: If e.KeyCode = Keys.Escape Then End However, upon reading the documentation on what End actually does, it turns out that it probably is one of the worst ways to end the application in terms of releasing resources, etc. So now I'm trying to find the recommended way to terminate the application which will properly handle all resources, etc. I've found these two questions on SO (here and here) but I can't conclude what the right answer actually is. The accepted answer on the first link says that
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.