1) Add a panel, panel1, to the form and set Dock property to Left
2) Add a TreeView to panel1 and set Dock property to fill
3) Add a panel, panel2, to the form and set Dock property to Fill
4) Add a panel, panel3, to panel2 and set Dock property to Right
5) Add a DataGridView to panel3 and set Dock property to Fill
6) Add a panel, panel4 to panel2 and set Dock property to Fill
7) Add a ListView to panel4 and set Dock property to Fill
If you want to resize the TreeView ListView and DataGridView, add the
following steps
1A) Add a Splitter to form and set Dock property to Left
4A) Add a Splitter to panel2 and set Dock property to Right
If you add the panels in wrong order the panels that has Dock = Fill will go
behind the other panels.
/Lennart
"Alan T" <al*************@yahoo.com.auskrev i meddelandet
news:%2****************@TK2MSFTNGP03.phx.gbl...
>I would like to know how do I align the controls on th Win form:
Align TreeView on the left
Align ListView on the client area
Align datagridview to the right ?