Solved

does pressing X control in topright of form = application.exit?

Posted on 2004-10-17
1
149 Views
Last Modified: 2010-04-23
I'm trying to do some closing statements, but it appears that when the x is clicked to close the form, the entire application quits and my form.closing procedure doesn't execute.   Is there a way around this?

thx in advance
0
Comment
Question by:OnlineNoob
1 Comment
 
LVL 7

Accepted Solution

by:
J_Mak earned 250 total points
ID: 12336344
Are you using the Form_Closing(Bbject sender, System.ComponentModel.CancelEventArgs e) event?

If you are, have a look at the following links:

http://www.syncfusion.com/FAQ/WinForms/FAQ_c95c.asp#q608q <-- 32.27
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsformclassonclosingtopic.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsformclassclosingtopic.asp

You can manipulate how the application closes, that is you can even cancel a close procedure and keep the application running if the user changes their mind. Let me know if it helped.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

821 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