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

Click here to load this message in the networking platform