What is the difference between Dock and Anchor
I have a windows form which have a lot of controls in that(Listbox,Groupbox,Combobox,TextBox,ListBox etc). I need to resize and arrange the controls automatically whenever the form's size gets changed. I need to know the difference between Dock and Anchor to implement this. What is the actual difference between Docking and Anchoring? The Anchor and Dock properties of a form are two separate properties. Anchor refers to the position a control has relative to the edges of the form. A textbox, for example, that is anchored to the left edge of a form will stay in the same position as the form is