My application has no forms. It runs by calling Application.Run();
From stackoverflow
Haim Bender
-
Call System.Windows.Forms.Application.Exit();
Esteban Araya : Did you use puppet accounts to upvote this question?Esteban Araya : Er.. answer, I meant answer.From Haim Bender -
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.
From Ryan Taylor -
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?
From Rinat Abdullin
0 comments:
Post a Comment