Subscribe MDI parent form to MDI child Closed event

Subscribe MDI parent form to MDI child Closed event

Post by MuZZ » Fri, 18 Feb 2005 02:14:45


Hi,

How do i notify the main MDI form that one of the child forms got closed?

Thank you
Andrey
 
 
 

Subscribe MDI parent form to MDI child Closed event

Post by Nicholas P » Fri, 18 Feb 2005 03:47:15

Andrey,

Basically, you would attach a method on the main form to the Closing or
Closed event on the child form when it is created. This might require that
you make the event handler public, if the creation of the child is occuring
outside of the scope of the main form.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- XXXX@XXXXX.COM