Skip to content

Commit

Permalink
Create Rule “set-the-scrollbars-property-if-the-textbox-is-multiline/…
Browse files Browse the repository at this point in the history
…rule” (#8235)
  • Loading branch information
fenix2222 authored Mar 26, 2024
1 parent ed76910 commit cee70c8
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
type: rule
title: Do you set the ScrollBars property if the TextBox is Multiline?
uri: set-the-scrollbars-property-if-the-textbox-is-multiline
authors:
- title: Adam Cogan
url: https://ssw.com.au/people/adam-cogan/
created: 2014-03-14T02:02:00.000Z
guid: e5c31a04-6a24-4b9d-a657-8c10a7e0bc8d
---
If a TextBox has Multiline set to true, then the ScrollBars property should be set to "Both" or at least "Vertical".

<!--endintro-->

::: bad
![Figure: Bad example - Multiline TextBox without "Vertical" scroll bar.](multiline_bad.gif)
:::

:::good
![Figure: Good example - Multiline TextBox with "Vertical" scroll bar](multiline_good.gif)
:::

:::good
![Figure: Good example - Set the ScrollBars property to "Vertical" if the TextBox is Multiline](multilinetextbox.gif)
:::

We have a program called [SSW Code Auditor](https://ssw.com.au/ssw/CodeAuditor/) to check for this rule.

0 comments on commit cee70c8

Please sign in to comment.