You use the Anchor property. Select the sides you want your control to remain a constant distance from and the control will relocate and resize with the form to maintain those distances. For instance, you would anchor OK and Cancel buttons to the Bottom and Right sides to keep the buttons in the bottom, right-hand corner.