Closing application?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am wondering how Application.Exit, Me.Dispose and End are different when it
comes to closing an application (File --> Exit menu)

Thanks
 
As far as i understand it, Application.Exit will close all open windows of a
particular window and then exits the application. It does this by terminating
all running threads and commands.

As for me.dispose, it cleans up all resources that were used by the object
that calls it.

End, just sorts of marks the end of a particular sequence of instructions,
eg end sub, end for, end if... etc.

Hope this helps.. However if i am wrong. can someone please reclarify this.
 
The Exit just exits the application, whereas the Dispose can be used to free
up resources. End just stops the application.

I would do a google on Finalize and Dispose methods.

hope that helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top