Do you know TextAlign should be TopLeft or MiddleLeft?

Last updated by Igor Goldobin 2 months ago.See history

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.

textalign bad
Figure: Bad example - Wrong settings in the designer

textalignresult bad
Figure: Bad example - Set Anchor property to Top, Bottom, Left, Right in the designer

textalign good
Figure: Good example - Textbox with the wrong anchoring and/or docking properties

textalignresult good
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

We open source. Powered by GitHub