paynea Posted October 7, 2002 Posted October 7, 2002 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. Quote
*Gurus* divil Posted October 7, 2002 *Gurus* Posted October 7, 2002 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. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
paynea Posted October 8, 2002 Author Posted October 8, 2002 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.