Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrating Rule “use-anchoring-and-docking-if-you-have-a-multiline-textboxes/rule” #8243

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,33 @@
---
type: rule
title: Do you use Anchoring and Docking (full) for multiline textboxes?
uri: use-anchoring-and-docking-if-you-have-a-multiline-textboxes
authors:
- title: Adam Cogan
url: https://ssw.com.au/people/adam-cogan/
created: 2014-03-14T02:02:00.000Z
guid: 8a009c23-899e-4c20-8dbb-4ddb16df5357

---

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.

<!--endintro-->

::: bad
![Figure: Bad example - Wrong settings in the designer](wrongsettings.jpg)
:::

::: good
![Figure: Good example - Set Anchor property to Top, Bottom, Left, Right in the designer](setanchorproperty.jpg)
:::

::: bad
![Figure: Bad example - Multiline textbox with the wrong anchoring and/or docking properties](wronganchoranddock.jpg)
:::

::: good
![Figure: Good example - Multiline textbox with the correct anchoring and/or docking properties](correctanchoringanddocking.jpg)
:::

We have a program called [SSW Code Auditor](http://www.ssw.com.au/ssw/CodeAuditor/) to check for this rule
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.
Loading