Controlling positioning on the window shape according to the size of the form

I have a form on which I want to place certain controls. I want them to be located on the form in accordance with the size of the form, that is, far from each other when the form is maximized and closes when it is smaller in size.

How to do it? Thanks.

+4
source share
1 answer

Each Windows control has two properties, Dock and Anchor . Using them, you can nicely place controls and test various forms of forms. Check out these links and notice the behavior when playing with these properties.

Anchor and Dock

Dock Controls

+6
source

Source: https://habr.com/ru/post/1343727/


All Articles