I have an application with a main form that acts as a sort of frame and an area inside the main form where I open other forms. These forms must not be closed ever so when a new one is opened I use this code to open it for the first time:
frm.WindowState = FormWindowState.Maximized;
frm.BringToFront();
And then if another form gets opened on top of that and I need to show it again I just use:
frm.Show();
The problem is when I open the form the first time its positioned perfectly and the borders line up nice. When I use frm.Show() to bring it back it moves it slightly to the left and down. Any clue why?