Solved

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

Posted on 2003-10-30
2
394 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Suggested Courses

738 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