You can set the Anchor property of components.
the Anchor property defines how a control is automatically resized as its parent control is resized. Anchoring a control to its parent control ensures that the anchored edges remain in the same position relative to the edges of the parent control when the parent control is resized.
You can anchor a control to one or more edges of its container. For example, if you have a Form with a Button whose Anchor property value is set to Top
and Bottom
, the Button is stretched to maintain the anchored distance to the top and bottom edges of the Form as the Height of the Form is increased.
To do that programmatically use the code like
control1.Anchor = AnchorStyles.Bottom | AnchorStyles.Top | AnchorStyles.Left;
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.anchor%28v=vs.110%29.aspx