Solved

Form1_Closing event not working

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
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.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

770 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