Solved

C# Winform Application Exit

Posted on 2007-03-23
2
2,150 Views
Last Modified: 2011-10-03
When I hit close(X)  on  my Winform my application still doesnt exit from memory. I still see it in the Task Manager. I want to exit the application.    

Is there any event of the Form which fires when I click close(X) and I can manually do an Application.Exit() in that method
0
Comment
Question by:AdibRahman77
2 Comments
 
LVL 2

Accepted Solution

by:
khoama earned 175 total points
Comment Utility
I do not remember it exactly ( onClose ). Just switch to the Events window of the form designer.
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
Comment Utility
Do you have any threads running in the app?  If so, either terminate or set the IsBackground() property on them to True.

Also, infinite loops will keep the app from exiting.

What does your app do?
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 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

15 Experts available now in Live!

Get 1:1 Help Now