I have been struggling with this problem in C# for a while.
I have created a form with about 4 panels on it. The main panel is set to fill the screen when it resizes. (Panel1 = Dock Top; Panel2 = Dock Bottom; Panel3 = Dock Left; Panel4 = Dock Fill)
[IMG]c:\temp\panel1.gif[/IMG]
I have another form that I add to this panel 4. The problem is that if I have it open up as part of the form (child form), it resizes (which is correct), but also all buttons etc. on the form resizes and moves away from its posistion.
Expand|Select|Wrap|Line Numbers
- frmCrewLogon frmCrew = new frmCrewLogon();
- frmCrew.TopLevel = false;
- frmCrew.Dock = DockStyle.Fill;
- panel4.Controls.Clear();
- panel4.Controls.Add(frmCrew);
- frmCrew.Show();