Close all child windows when parent is closed 
Author Message
 Close all child windows when parent is closed

Is there a way to do this?

I've opened all child windows with a uniqe name.
But I can't find how to close the child windows.

Ove B-)

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Mon, 22 Jul 2002 03:00:00 GMT  
 Close all child windows when parent is closed

You need to save object references to the child windows you open and explicitly call the close method on each.  Of course, you need to account for the fact that any one of them may have already been closed by the user, so you'll need error trapping...

--
Michael Harris


  Is there a way to do this?

  I've opened all child windows with a uniqe name.
  But I can't find how to close the child windows.

  Ove B-)

  Sent via Deja.com http://www.deja.com/
  Before you buy.



Mon, 22 Jul 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Closing Parent Window when the child window closes

2. Closing a child window when parent closes

3. Updating parent window and closing child window

4. Updating parent window and closing child window

5. Getting a Child window to Refresh its Parent when its closed

6. Updating a parent window and closing the child

7. Call function in parent window, then close child (current)

8. MDI Parent + Child closing problem

9. closing a popup when the parent closes.

10. Close child window when another window becomes active

11. Refreshing a parent window after closing link window

12. closing the Yes/No window when closing a Shelled Window

 

 
Powered by phpBB® Forum Software