How to activate close events of MDI children?

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.
 
M

Morten Wennevik

Hi Nad,

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top