Computing.Net > Forums > Programming > MDI Form in VB

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

MDI Form in VB

Reply to Message Icon

Name: henry_joshua
Date: February 10, 2005 at 05:08:07 Pacific
OS: Win XP
CPU/Ram: P-4/128
Comment:

Dear Friends,
I have a MDI form and I want that only one child form must open at one time, i.e. when i open a new child form then all the open child forms must first close before opening the new one.

Please Help

Thanx for this help in adv.

Joshua



Sponsored Link
Ads by Google

Response Number 1
Name: StuartS
Date: February 10, 2005 at 20:56:32 Pacific
Reply:

Put a Call to the following Sub in each form Load Event. It will unload every form except the MDI Form itself.


Public Sub unload_forms()

Dim i As Integer
i = Forms.count - 1
If i > 1 Then
Unload Forms(i)
End If

End Sub

Stuart


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: MDI Form in VB

MDI forms in vB www.computing.net/answers/programming/mdi-forms-in-vb/1842.html

Master-Detail Form in VB - How? www.computing.net/answers/programming/masterdetail-form-in-vb-how/2506.html

making a link with 2 forms in vb www.computing.net/answers/programming/making-a-link-with-2-forms-in-vb/7847.html