Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conditional Closing of MDI Form
Message
From
30/11/2001 12:56:00
 
 
To
30/11/2001 10:44:57
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00587580
Message ID:
00588133
Views:
28
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
Previous
Reply
Map
View

Click here to load this message in the networking platform