Solved

Closing MDI Parent form

Posted on 2004-10-20
5
254 Views
Last Modified: 2010-04-23
Does closing MDI parent form with close() method close it childs? or I have to loop through MDIChildren and close each one before calling close() method of the MDI parent form?
0
Comment
Question by:f_asmaa
  • 3
  • 2
5 Comments
 
LVL 3

Expert Comment

by:RacinRan
ID: 12357429
Yes, closing the MDIParent closes the child forms.  No, you do not have to loop through calling the close method of each child form.

Racin
0
 

Author Comment

by:f_asmaa
ID: 12357452
Have you reference for that?
0
 
LVL 3

Expert Comment

by:RacinRan
ID: 12357540

"When a form is closed, all resources created within the object are closed "

from this msdn article:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsformclassclosetopic.asp


What problem are you having?
0
 

Author Comment

by:f_asmaa
ID: 12357659
I have no problem. I read this sentence before but I thought that the resources mean file handler, images, controls and so on. I am not sure that MDI children are resources of MDI parent.

If I didn't get another answer today I will accept your answer.
0
 
LVL 3

Accepted Solution

by:
RacinRan earned 125 total points
ID: 12357805
It does mean resources.  The children are objects that live in the mdichildren collection object of the parent.  Just like controls are objects that live in the forms control collection.

0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now