General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only