Close closes the form. The object still exists. You may need to use it again after calling the close function to release the resource.
Dispose: destroys an object. The form object is recycled, that is, it does not exist. The resources released by the dispose function are no longer used.
Application. Exit. EntireProgramWhen the process ends, all objects in the project are destroyed and the entire application is exited.
Note: It may vary with MDI. In this case, you need to manually call dispose to mark all controls of the form as garbage collection.
Close and dispose call exit to exit a single form.
The close call will trigger the wm_close message. If you add a few words in form_closingCodeTo block it. Set handle to false.
Dispose directly releases the entire object, that is, manually releases it .. Net is an automatic garbage collection mechanism. If you do not release it, it can also be released by the system. Manual release is also beneficial.