Docking Issue

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
 
R

Robin.Liu

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);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top