Solved

Form1_Closing event not working

Posted on 2007-03-26
3
881 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
  • 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 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

23 Experts available now in Live!

Get 1:1 Help Now