Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Conditional Closing of MDI Form
I have a MDI application. If the program is not executed with Command Line Arguments an Outlook style Bar is visible in the MDI Main window. This allows the user to select which child forms to open.
If the program is executed with Command Line Arguments then the Outlook Bar is NOT visible and only one child form is opened based on the Command Line Arguments.
When I unload the Child form I would like to have the MDI unload if:
1) There are no other children forms open
2) The Outlook style bar is NOT visible
I have tried putting code in the Unload of the Child form
If Forms.Count > 1 Then
If Form = MDIMain Then
If MDIMain.OutlookBar.Visible = False Then
Unload formName
End If
End If
End If
I keep getting an error that MDI Form already exists. I have tried putting the code in a Public Module - same error. Does anyone have a suggestion on how to accomplish my objective?
Thanks,
Nichole
Suivant
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