Opening MDI Child From MDI Child Form, like VisStudio Start Page

Opening MDI Child From MDI Child Form, like VisStudio Start Page

Post by Jenb » Fri, 02 Mar 2007 21:47:21


Hi, I have an MDI application which contains a start page with a
listview of items in it that can be used to click on and open as a
child form. So the start page is the child at start up of form.
However, when I try to open another child from this start form it
opens ok, but will not show or focus on the new form, it keeps coming
back to itself? Why would this be? I open the form like so from the
start page.

MPE.PolForm polWin = new MPE.PolForm();
polWin.Show();

and then in the polForm I do

this.MdiParent = mainForm;

and
mainForm.windowManagerPanel1.AddWindow(this)

Any ideas? The windowManagerPanel1 is a tabbed form control that
behaves like visual studio 2005. Why does it always go back to the
start form and not show the new created form.
Thanks
Jenbo
 
 
 

Opening MDI Child From MDI Child Form, like VisStudio Start Page

Post by Bryan Phil » Fri, 09 Mar 2007 05:59:26

Look at using the TabSmartPart from the Composite UI App Block. It is a
very good implementation of what you describe.

http://www.yqcomputer.com/

Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://www.yqcomputer.com/