Solved

Form1_Closing event not working

Posted on 2007-03-26
3
926 Views
Last Modified: 2012-05-05
The following event is not firing for some reason "Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e)"  I'm using VS.NET 2005 and C#.   Can someone please tell me why this event isn't working??

THanks
0
Comment
Question by:ptrennum
[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
3 Comments
 
LVL 25

Accepted Solution

by:
dstanley9 earned 500 total points
ID: 18794792
Perhaps the event handler is not actually wired to the event.  Look at the properties of the form in design view.  Click the yellow lightening-bolt icon in the properties grid and see if your function is listed under the handler for Closing.  If not select it from the drop-down list.
0
 

Author Comment

by:ptrennum
ID: 18794874
sorry - I clicked the lightning bolt and I don't see anything that indicates something is happening for closing.  I see resizing, validating etc. but nothing for closing
0
 

Author Comment

by:ptrennum
ID: 18794915
My Fault I didn't have the entire Dialog selected.  You were right the event wasn't wired up.  Thanks so much!!
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

Suggested Solutions

Title # Comments Views Activity
C# XML Get Values 4 51
create dataset from text files to go on winforms gridview 3 35
Visual C# Windows Project - Clone Form 4 39
c#  FTP ftpwebrequest URI invalid 6 44
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
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 antispam), the admini…

739 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