Solved

Closing MDI Parent form

Posted on 2004-10-20
5
252 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 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

15 Experts available now in Live!

Get 1:1 Help Now