I have a few global static events that some of my forms subscribe to. The subscription happens in the Form.Load event of each form. Those forms are added to a DocumentWindow then to the DockManager. The subscription is great, everybody's listening fine. Now when I close a DocumentWindow, the forms OnClosing events doesn't happen thus not unsubscribing to the static event I had wired. So now when another form (document window) fires the static event I get an exception from the closed form where the static handler is trying to work but the form doesn't exists anymore.
Any ideas on how to unsubscribe to static events on forms that are children to DocumentWindows once closed?
Thanks,
Byrd
Any ideas on how to unsubscribe to static events on forms that are children to DocumentWindows once closed?
Thanks,
Byrd