My application has no forms. It runs by calling Application.Run();
Did you use puppet accounts to upvote this question?
Esteban Araya
2008-10-08 01:19:40
Er.. answer, I meant answer.
Esteban Araya
2008-10-08 01:20:14
+1
A:
The other option is Environment.Exit(), however if your application does rely on the Application classes, System.Windows.Forms.Application.Exit() is the more "proper" way of handling it.
Ryan Taylor
2008-10-08 01:46:00
A:
Just like the MSDN documentation for the Application.Run() suggests:
Note, that most Windows Forms developers will not need to use Application.Run(). Are you sure you need message pumping in your app?
Rinat Abdullin
2008-10-08 04:40:05