G
Guest
I have an event handler that is called when Deactivate even is raised. The
reason is I want the form to do some stuff when it is deactivated, e.g., when
screen saver starts to run. However, whenever I close the window, the
deactivate even handler get called also. And it run into errors since some
resources are no longer available when the form is closing.
Is there a way to know that the form is closing so I don't do anything in
Deactivate event handler?
Thanks
reason is I want the form to do some stuff when it is deactivated, e.g., when
screen saver starts to run. However, whenever I close the window, the
deactivate even handler get called also. And it run into errors since some
resources are no longer available when the form is closing.
Is there a way to know that the form is closing so I don't do anything in
Deactivate event handler?
Thanks