Hi all,
I have noticed interesting behaviour in our .NET WinForms app. We have an mdi form that has many mdi children added. These child forms listen to a "broadcast" event which is in essence a call to refresh itsself. The event is declared in a base class and the listening events added in the child forms.
I've noticed that even when these child forms are closed, the events are still being hit, if the event is not explicitly removed in the Dispose() method.
What is the reasoning behind this? Surely if the form is closed, the events should be detached/disposed of? Is it because the actual event itself is declared in an outside class? This is what I am presuming.
Insight would be much appreciated.
(using C#, .NET 3.5)