Solved

Closing Child MDI and open a new child MDI based on Closed child MDI.

Posted on 2003-10-30
2
391 Views
Last Modified: 2010-04-16
I have MDI parent. I am opening a new child MDI in that. and I have next button in it. when user press next button i want that child to close and open a new child based on the close child. I tried showdialog(); but thats doesn't work in MDI parent. Is there any event handling i can set up for MDI container so that way i can catch when the child window is being closed.
Thank You all.
0
Comment
Question by:ECIQue
2 Comments
 
LVL 19

Expert Comment

by:Desp
ID: 9655752
there is an event form_Closing
try to put Following lines in the FormClosing of mdi child

// Create a new form to represent the child form.
 Form2 child = new Form2();
   // Make the new form a child form.
 child.MdiParent = this.MdiParent ;
   // Display the child form.
 child.Show();

if that wont work, put these lines in the Form_Close Event


**I dont have VS.NET here... so i couldnt test it..



0
 

Accepted Solution

by:
ECIQue earned 0 total points
ID: 9658147
well

duhh !!

we already tried that
that does not work.

however we found out a way to do it

i will request a closure.

just for your info
what we did was
for the MDI Parent
the on Activated event
would check the value in Clipboard and get the form name to be loaded

once found
will load that form.

smit.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

832 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