Advice on TableLayoutPanel

Brady Kelly <[email protected]> Fri, 15 Feb 2008 07:04:59 +0200
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <[email protected]>
I'm trying to emulate the look and feel of something like MS Office
Accounting, with a common form layout of two lists of label-control pairs,
one at the top left of the form, and the other at the top right. Below these
is normally a grid, or other controls that span the whole width of the form,
e.g.



 -|-

 -|-

_|_

___



Now it seems to me that the TableLayoutPanel should be the basis of this,
allowing the two top sections to dynamically size as the form sizes
horizontally.  However, I don't know whether to use four columns, for left
label-control and right label-control, and one row for each two
label-control pairs, or to use two columns, and a separate container in each
column for a vertical list of label-control pairs.



I've never used these layout controls before so any advice will be much
appreciated.