Solved

Terminate Windows Form app with C#

Posted on 2008-10-30
2
858 Views
Last Modified: 2011-10-03
Hi experts!

I have project with C#  , WindowsForms and Framework 2.0 with VS2008. Is there command in C# witch terminate application and let Windows to clear used resources? I need this in client server app and if I detect droped of connection via Interenet I need to close application. And I dont have easy way to close all my form and objects in all code, that is why I need commad like End in VB6.
0
Comment
Question by:dvplayltd
2 Comments
 
LVL 15

Accepted Solution

by:
SRigney earned 500 total points
ID: 22843110
I believe you can use Application.Exit.   http://geekswithblogs.net/mtreadwell/archive/2004/06/06/6123.aspx
0
 
LVL 3

Expert Comment

by:Blackninja2007
ID: 22843115
Prehaps 'Application.exit' is what your after

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question