I would like to centralize code handler for all FormClosed Event, is there a way to be notified automatically by all forms that are closing ?
Share
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.
subscribe your event handler after you instantiate the form. i.e. use +=
[EDIT: or you can use extension methods to simplify the event subscription process]