Form closing issue
-
On closing the form i need to save some data so in which event should i call the function to save data. i am doing it inside Form1_FormClosed(); but if the data is not proper it should return from there..it is returning but closing the form. Is there any handler which gets called before Form1_FormClosed() event. ThankXXX In Advance.
Truth Is The Simplest !!!!
-
On closing the form i need to save some data so in which event should i call the function to save data. i am doing it inside Form1_FormClosed(); but if the data is not proper it should return from there..it is returning but closing the form. Is there any handler which gets called before Form1_FormClosed() event. ThankXXX In Advance.
Truth Is The Simplest !!!!
-
On closing the form i need to save some data so in which event should i call the function to save data. i am doing it inside Form1_FormClosed(); but if the data is not proper it should return from there..it is returning but closing the form. Is there any handler which gets called before Form1_FormClosed() event. ThankXXX In Advance.
Truth Is The Simplest !!!!
You can write that code in
FormClosing()
and set theFormClosingEventArgs.Cancel
property to true. I don't mean to be harsh, but the very first result for cancel formclosed[^] brings up the answer.Cheers, Vikram.
"I will put my new found knolage to good use" - Captain See Sharp. "Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed." - Gary Wheeler.