Is it possible to create my own event in vb.net .
I need an event for WindowState = Normal.
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.
You can use the
SizeChangedevent to monitor changes toWindowState. Then you can expose your own custom event that is raised when it changes:This sample will raise the
WindowStateChangedevent whenever it changes, regardless of from what state and to what state. You can easily add conditions to raise it only for certain states.