Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I close all open MDI Children
Message
De
11/08/2000 08:04:02
 
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00403001
Message ID:
00403832
Vues:
23
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform