Anchoring and Docking - Do you use Anchoring and Docking (horizontal only) with single line textboxes?
Updated by Igor Goldobin 1 year ago. See history
123
If you add a text box in a form you should add anchoring and/or docking properties to allow it to grow as the form widens, but not as it increases in height.

❌ Figure: Bad example - Wrong settings in the designer

✅ Figure: Good example - Set Anchor property to Top, Bottom, Left, Right in the designer

❌ Figure: Bad example - Textbox with the wrong anchoring and/or docking properties

✅ Figure: Good example - Textbox with the correct anchoring and/or docking properties
We have a program called SSW Code Auditor to check for this rule