|
-
December 16th, 2002, 12:02 PM
#1
closing MDIChild forms
is there a way to close all MDIChild forms without keeping track of the ones the user has open, leaving just the MDIParent form open?
-
December 16th, 2002, 12:16 PM
#2
Try something like this:
While not me.ActiveMDIChild is nothing
me.activemdiChild.Close
Loop
-
December 17th, 2002, 04:24 AM
#3
or something like this....
Code:
Dim frm As Form
For Each frm In Me.MdiChildren
frm.Close()
Next
If you are not closing them from the parent window you will have to do something like this...
Code:
Dim frm As Form
For Each frm In Me.ParentForm.MdiChildren
frm.Close()
Next
/Leyan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|