Solved

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

Posted on 2003-10-30
2
387 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Loop not working 29 47
c# LinkButton OnClientClick 2 34
Host asp.net pages 5 25
In WPF / C# binding a local database in code behind 1 24
In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

896 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

16 Experts available now in Live!

Get 1:1 Help Now