Do you set the ScrollBars property if the TextBox is Multiline?

Loading last updated info...

If a TextBox has Multiline set to true, then the ScrollBars property should be set to "Both" or at least "Vertical".

Image

❌ Figure: Bad example - Multiline TextBox without "Vertical" scroll bar.

Image

✅ Figure: Good example - Multiline TextBox with "Vertical" scroll bar

Image

✅ Figure: Good example - Set the ScrollBars property to "Vertical" if the TextBox is Multiline

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