Serialcoder en Français Serialcoder in English
TEL : +33 (0)9 72 13 15 17

Windows Forms FAQ resources

6. Windows Forms Docking

6.2 How can I make my control automatically grow when the parent form is sized?


Change the control's Anchor property so that it is anchored on all 4 sides.



Please note that you can only have 1 control per form anchored in this manner (all 4 sides). And other controls on the form should be anchored by their sides that are not adjacent to special control anchored on all 4 sides.