Solved

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

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

746 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

12 Experts available now in Live!

Get 1:1 Help Now