mardi 10 mars 2015

Two Forms open and thier state changed

I´m stuck on this...working on MDI Application. In that I open a Form maximized. Out of this form (using a button) I open a new form, both form open in a MDI form.


This 2nd form is set to WindowState = FormWindowState.Normal;. AND 1st form is set to WindowState = FormWindowState.Maximized;


Then BOTH Forms are turned into normal, what I really don´t want them to do. The 1st form should remain maximized and the other should open in normal state. I don´t want to do it like "use the resize-event of the first form" - that´s no solution, because my users could like to really resize that form...


this is my code ,how I open 2nd form



Form26SeperateEntry chilform = new Form26SeperateEntry();
chilform.MdiParent = this;
chilform.Location = new Point(700, 30);
chilform.Show();
chilform.WindowState = FormWindowState.Normal;


Any ideas how to manage that? Thank you


Aucun commentaire:

Enregistrer un commentaire