Information générale
Catégorie:
Codage, syntaxe et commandes
I tried that and I get the same error message. Run Time error 426 Only One MDI Form allowed.
The only way that I have been able to close the MDI Form is to create a timer on the MDI Form and a Form property that is set when the MDI Form is opened. Example: I want the MDI Form to close when it is the only form Open so in the Timer Event
If Forms.Count = 1 Then
If m_CloseForm = True Then
Unload Me
End If
End If
Does anyone have a better suggestion? Is there a MDI Form event that fires when a child form is closed? I could then put the code above in that event instead of in a Timer. Am I missing something?????
Thanks,
Nichole
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement