Solved

Form1_Closing event not working

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
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.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

895 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

14 Experts available now in Live!

Get 1:1 Help Now