?
Solved

Form1_Closing event not working

Posted on 2007-03-26
3
Medium Priority
?
956 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 2000 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

764 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