Solved

C# Winform Application Exit

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

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Check only one toolstripmenu item 12 62
PowerShell: Adding ToGB to a script 4 74
Difference between Leaflet and MapBox? 5 47
.NET universe documentation poster 2 25
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

751 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