Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I close all open MDI Children
Message
From
11/08/2000 08:04:02
 
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00403001
Message ID:
00403832
Views:
22
Try This !

Sub sUnloadChild()
Dim intIndex As Integer
Dim blnLoop As Boolean

blnLoop = True
Do While blnLoop
'Forms is a collection of loaded form in your App
'Index 0 is MDIfrom
For intIndex = 1 To Forms.Count - 1
If Forms(intIndex).MDIChild = True Then
Unload Forms(intIndex)
blnLoop = True
Exit For
End If
blnLoop = False
Next
'Only MDI from is open
If Forms.Count = 1 Then blnLoop = False
Loop

End Sub
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform