Docking Issue

  • Thread starter Thread starter Doug
  • Start date Start date
D

Doug

Hello,

I can't figure this out - I coded 2 panels and set one to be docked Left and
the other to be docked Fill. However, everytime, no matter what I do, the
docked Fill panel always ends up "behind" the Left docked panel. This is
all done at runtime. There are no tab indexes defined - I've deleted the
panel and recreated, but no luck - I need the Left panel to stay in place
and the fill to panel to start to the right of the Left and when the user
expands the application, the Fill panel expands, but the Left panel does not
adjust in size.

I hope this makes sense....can someone please help.

Thanx,
Doug
 
Change the adding orders of the controls.

this.Controls.Add(panel1); //left dockstyle
this.Controls.Add(panel2); //fill dockstyle

change order as below

this.Controls.Add(panel2);
this.Controls.Add(panel1);
 
Back
Top