You can use the Closed, or Closing, event of the Form. If you're using the
..NET 2.0 framework then it's recommended that you use the FormClosed, or
FormClosing, event.
Sometimes is the simplest things that drive you nuts. I had used the
Closing event for some other code that would have prevented its use to
exit the application. However, I neglected the Closed event and it
seems to work just fine. Thank you so much for your direction.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.