I have two ListViews in Compact Framework 2.0 positioned vertically next to each other. Each of the ListViews occupies half of the screen. How can I dock/anchor them so when the orientation changes for landscape they grow equally and do not overlap each other.
From
-------- --------
| | | |
| | | |
| | | |
-------- --------
Into
-------------- -------------
| | | |
| | | |
| | | |
-------------- ------------开发者_如何学C-
(WinForms) Put them in 2 cells of a TableLayoutPanel. Set the Column-Widths to 50% each.
(After the) Edit: CF does not support this, use the ReSize event of the Form or containing Panel to do it yourself.
精彩评论