Solved

Terminate Windows Form app with C#

Posted on 2008-10-30
2
852 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now