Solved

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

Posted on 2004-10-17
1
146 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
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.
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now