Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditional Closing of MDI Form
Message
De
30/11/2001 12:56:00
 
 
À
30/11/2001 10:44:57
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00587580
Message ID:
00588133
Vues:
31
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
Fil
Voir

Click here to load this message in the networking platform