Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

  • *Gurus*
Posted
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.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...