Do you use Anchoring and Docking (full) for multiline textboxes?

Loading last updated info...

If you add a multiline textbox in a form, you should add anchoring and/or docking properties to allow it to expand when the form is resized.

Image

❌ Figure: Bad example - Wrong settings in the designer

Image

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

Image

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

Image

✅ Figure: Good example - Multiline textbox with the correct anchoring and/or docking properties

We have a program called SSW Code Auditor to check for this rule

Authors

Need help?

SSW Consulting has over 30 years of experience developing awesome software solutions.

We open source.Loving SSW Rules? Star us on GitHub. Star