Problems with MDI Forms
Hi, I'm have a problem creating an MDI Form application and Im hoping someone can shed some light on it for me. I will try to provide as much information as I can as to what is happening and what I am trying t achieve.
My Application has a main MDIParent / Container and when the aplication starts, a Child Window is created which is just a little toolbar which will in turn spawn additional child forms. The problem is when I resize one of the Child forms, they all resize.
Here is the code that I am using on the click event of one of the buttons on the "Toolbar" (Child Form)..
frmStatus form1 = new frmStatus();
form1.MdiParent = this.MdiParent;
form1.WindowState = FormWindowState.Maximized;
So I create a new instance of form, set its MdiParent to the Parent of the "Toolbar" (Child Form) which makes its Parent the main MDIContainer. I do this so I can easaily track MDI Children in a Window Menu. I then set its Window State to be maximised and show the form.
This works perfectly, the form goes full screen (inside the MDI Container of course), its name appear in the Window menu, however when the new Child form is created, it is also resizing the "Toolbar" form to be maximized aswell..
How can i get it so that I can maximise just a single MDI Child without affecting another.
Please let me know if I need to provide any further information.
Thanks in advance.