Solved

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

Posted on 2004-10-17
1
150 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
[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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

738 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