Solved

C# Winform Application Exit

Posted on 2007-03-23
2
2,175 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
[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 2

Accepted Solution

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

Expert Comment

by:Mike Tomlinson
ID: 18782680
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

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

636 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