positioning controls on a windows form according to the form size
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
精彩评论