Hi! Here's my application: I have an MDI parent in which I open a child with WindowState = FormWindowState.Maximized. The child form hosts the WebBrowser control. When a user clicks on a link in the browser, I open up another child form like this:
PopUpForm newPopForm = new PopUpForm();
newPopForm.MdiParent = this.MdiParent;
e.ppDisp = newPopForm.webMain.Application;
newPopForm.WindowState = FormWindowState.Normal;
newPopForm.Visible = true;
newPopForm.Focus();
As you can see, the WindowState on the new popup form is Normal.
It works fine. However, the 1st child is no longer Maximized. It's WindowState
becomes Normal as well.
Question: Is it by design or I am doing something wrong? What can I do to keep the WindowState of the 1st child fixed from being changed by opening a new form? I mean the user can resize the 1st child, so I want 1st child to remain the same. I tried to save the WindowState and adjust it after I popup the new form. However, once I placed focus to the popup form, the 1st child lost its state.
Please help me solve the mystery.
Many Thanks in Advance,