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

  • Thread starter Thread starter Jenbo
  • Start date Start date
J

Jenbo

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
 
Back
Top