Code |
But it doesn't work for me.
Code |
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Koteswararao MallisettiRank #2,740 · 511 reputationPosted Sep 29, 2010, 2:05 AM EDT
private void FileMonitorApp_FormClosing(object sender, FormClosingEventArgs e)
{
MessageBox.Show("in the closing");
}
private void FileMonitorApp_FormClosed(object sender, FormClosedEventArgs e)
{
MessageBox.Show("in the closed");
}
suppose you have to undo the closing use the
e.Cancel = true; in the closing event then the form is available
Per Jespersen23 reputationPosted Sep 29, 2010, 2:33 AM EDT
Felipe RamosRank #1,409 · 1.2K reputationPosted Sep 29, 2010, 5:29 AM EDT