开发者

Problem: Anchored controls are overlapping

开发者 https://www.devze.com 2023-01-13 17:52 出处:网络
Let\'s say we have tw开发者_运维技巧o panels, listboxes, etc... on the same \"row\" .. by \"row\" I mean their TOP property is the same so they are horizontally at the same level.

Let's say we have tw开发者_运维技巧o panels, listboxes, etc... on the same "row" .. by "row" I mean their TOP property is the same so they are horizontally at the same level. now If I set the anchor property of these two controls to top-left-right and I drag the right side of the form, the contorl that is at left hand side will overlap the control at the right hand side and it gets so ugly. How can I both achieve this resizing goal and also NOT to use the new things we have in C# like TableLayout .

thanks


You cannot get this out of the Anchor property, a TLP is an obvious solution. If you don't want to use that either then implement the form's Resize event and modify the controls Location and Size properties yourself.

0

精彩评论

暂无评论...
验证码 换一张
取 消