How to activate close events of MDI children?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

In an MDI form I have an Exit menu item that should exit the application.
But I want to activate close events of all open MDI Child forms before
exiting the application. How do I do that?

Thank you all for your replies.
 
Hi Nad,

An MDI Form uses its MdiChildren property to keep track of the MdiChildren. Iterate this list and call Close on each Child.
 
Back
Top