Docking and Anchoring
If you have used prior versions of Visual Basic or even Visual C++, you are probably familiar with having to write code to correctly position controls after the user has resized one of the forms you developed. You now have additional options available to you (provided by the .NET Framework and Windows Forms) so that you can automatically position controls without having to write any code.
The first option is called Docking. Docking allows you to automatically position a control at the edge of its parent. You can dock a control to the top, bottom, left, or right edge of its parent so that the control's placement is always aligned with the edge that it is docked to.
The second option is called Anchoring. Anchoring allows you ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access