MDI closing problems :(

Hey gals and guys,
I'm having a problem with the closing events of a MDI application i'm making.
I want the mdiChildren not to be able to close when you click the red [x] on the titlebar, but when the mdiParent closes, i want all of them to close along with the parent.

So what I did was intercept the mdiChildren closing events with a procedure the set e.cancel = true, but when i do that, the main form won't close. I found out that the mdiChildren closing and closed events run before the midparents closing and closed events, so basically the mdichildren are cancelling the closing of the mdiParent.

if this didn't confuse you, could someone help me out? :) thanks!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!