Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conditional Closing of MDI Form
Message
From
29/11/2001 12:54:37
 
 
To
All
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Conditional Closing of MDI Form
Miscellaneous
Thread ID:
00587580
Message ID:
00587580
Views:
43
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
Next
Reply
Map
View

Click here to load this message in the networking platform