got focus...

paynea

Newcomer
Joined
May 10, 2001
Messages
14
Location
UK - Leicester
i'm sure someone can put me right quite quickly....

i've got a windows mdi type application. i'm evaluating the number of open mdi child forms and performing actions based on weather any are displayed or not. (the code for this is fine)

i need to know what handle i can use from the parent form that triggers when child forms are closed.

i've tried a large variety of handles but none seem to work without leaving and re-entering the application completely.
(ie onGotFocus, activated, onActivate etc...)

cheers,
drew.
 
There is no event on the parent form specifically for when an mdi child closes, although it will have the effect of raising the MDIChildActivated event. You're better off calling a sub in the parent form from an MDI Child in their Closed event.
 
thanks divil,

tried the closed event strategy but that still doesnt work. i think that because the form hasn't been disposed of, it still exists as an item in the mdi children collection.

i think i need a different tack...

cheers anyhow,
drew.
 
Back
Top