olive
olive

Reputation: 3143

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 smaller in size.

How to do it? Thanks.

Upvotes: 4

Views: 9034

Answers (1)

Sanjeevakumar Hiremath
Sanjeevakumar Hiremath

Reputation: 11273

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

Upvotes: 6

Related Questions