开发者

positioning controls on a windows form according to the form size

开发者 https://www.devze.com 2023-02-17 08:11 出处:网络
I have a form on which i want to place certain controls. I want them to be positioned on the form according to the form size, that is, far apart when the form is maximised and close when it is s开发者

I have a form on which i want to place certain controls. I want them to be positioned on the form according to the form size, that is, far apart when the form is maximised and close when it is s开发者_如何学编程maller in size.

How to do it? Thanks.


There are two properties on every windows form control Dock and Anchor Using these you could beautifully place controls and test for different sizes of forms. Check these links and do look out for behaviour by playing around with these properties.

Anchor & Dock

Dock Controls

0

精彩评论

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