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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top