I have a .Net Compact Framework WinForm application , I want to catch Application OnExit event but there is no such event available.
Does anyone know any work around to achieve the same ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Application2 from the OpenNETCF framework has an ApplicationExit event.
If your app is not too complicated you could substitute Application2 for Application. (I have had some problems with the Application2 stuff but my code was a little bit “edge case”).