When closing your application from code, for example in the File | Exit menu you should use Form.Close() (ie this.Close() or Me.Close) opposed to Application.Exit(). When calling Application.Exit everything is told to stop immediately and then the appplication
Read More...