Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-10-17
1
Medium Priority
?
153 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 1000 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

782 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