In my application, user can navigate to one form to other and so on. So i want to maintain the WindowState of each form. My mean is that if form1 is in Normal mode then next form2 should be open in Normal mode and if form1 is in maximize mode then form2 should be open in maximize mode. Same approach is applicable when user navigate to previous form. I am not using MDI Parent - child.
One way of doing this is as following
frmLogin form = new frmLogin();
form.WindowState = this.WindowState;
form.Show();
this.Hide();
but I think this approach is not good. in this case i must maintain previous form reference to new form so when new form close then previous form occupy the new form windowState
Please suggest a better alternative