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]