Application.Exit for Windows Forms applications - it informs all message pumps that they must stop, waits for them to complete event processing, and then shuts down the application. Please note that this does not necessarily force the application to exit.
Environment.Exit applicable to all Windows applications, however it is mainly intended for use in console applications. It immediately terminates the process with the given exit code.
In general, you should use Application.Exit in Windows Forms and Environment.Exit applications in console applications (although I prefer the Main method / entry point to execute before completion rather than calling Environment.Exit in console applications).
See the MSDN documentation for more information.
Justin Aug 22 '11 at 10:28 2011-08-22 10:28
source share