Panel positioning

  • Thread starter Thread starter Jamie Bissett
  • Start date Start date
J

Jamie Bissett

Look at the Dock property, you can dock 1 left (or right), then tell the
other 1 to fill the rest, or add a splitter between to allow the user to
dynamically resize the panels.

Jamie
 
Hello,

I have a form, on this form 2 panels (on the left for a treeview, on the
right for the content).

Is it possible to resize automatically the panels to adjust them to the main
form' size if I resize this one ? In Delphi, it was possible to align right
(or left) the panels. Not possible with VS 2005 ?

Thanks,

G.
 
Look at the Dock property, you can dock 1 left (or right), then tell the
other 1 to fill the rest, or add a splitter between to allow the user to
dynamically resize the panels.

Thanks Jamie.

I'd like a small space between for example the right of the right panel and
the main form windows. I tried "Padding" property but no work.

G.
 
If you want to be nice to your users, why not put a splitter control
between the two (or use a split container in .NET 2.0) and then make
the splitter as wide as you would like the padding to be.

That way your users can change the proportion of space occupied by each
panel.
 
Back
Top