[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Closing MDI Parent form

Posted on 2004-10-20
5
Medium Priority
?
261 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 375 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Suggested Courses
Course of the Month19 days, 14 hours left to enroll

872 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