Solved

Terminate Windows Form app with C#

Posted on 2008-10-30
2
862 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…

740 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