Search code examples
c#winforms.net-3.5mdi

MDI Form detecting with a child form is added or removed


Is there an event I can use to tell if a child form has been added or removed from the MDI parent?


Solution

  • No, there is not. You would have to subclass Form and expose specific events that would indicate when the child is added and then route all attachments of child forms through a method that would wire up the child form, as well as raise the event.