I have an application with a main form that acts as a kind of frame and an area inside the main form, where I open other forms. These forms should not ever close when a new one opens. I use this code to open it for the first time:
frm.WindowState = FormWindowState.Maximized; frm.BringToFront();
And then, if another form opens on top of this, and I need to show it again, I just use:
frm.Show();
The problem is when I open the form, when it is first positioned, and the borders align beautifully. When I use frm.Show () to return it, it moves slightly left and down. Any clue why?
c # winforms
novacara
source share