When a control is anchored to an edge of its container, the distance between the control and the specified edge remains constant when the container resizes. For example, if a control is anchored to the right edge of its container, the distance between the right edge of the control and the right edge of the container remains constant when the container resizes. A control can be anchored to any combination of control edges. If the control is anchored to opposite edges of its container (for example, to the top and bottom), it resizes when the container resizes. If a control has its Control.Anchor property set to AnchorStyles.None, the control moves half of the distance that the container of the control is resized. For example, if a System.Windows.Forms.Button has its Control.Anchor property set to AnchorStyles.None and the System.Windows.Forms.Form that the control is located on is resized by 20 pixels in either direction, the button will be moved 10 pixels in both directions.