?
Solved

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

Posted on 2003-10-30
2
Medium Priority
?
397 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:Fahad Mukhtar
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

800 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