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

Last updated by Igor Goldobin 2 months ago.See history

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.

wrongsettings
Figure: Bad example - Wrong settings in the designer

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

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

correctanchoringanddocking
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

We open source. Powered by GitHub