diff --git a/rules/use-anchoring-and-docking-if-you-have-a-multiline-textboxes/correctanchoringanddocking.jpg b/rules/use-anchoring-and-docking-if-you-have-a-multiline-textboxes/correctanchoringanddocking.jpg new file mode 100644 index 00000000000..8232c0ae943 Binary files /dev/null and b/rules/use-anchoring-and-docking-if-you-have-a-multiline-textboxes/correctanchoringanddocking.jpg differ diff --git a/rules/use-anchoring-and-docking-if-you-have-a-multiline-textboxes/rule.md b/rules/use-anchoring-and-docking-if-you-have-a-multiline-textboxes/rule.md new file mode 100644 index 00000000000..748110a8d6a --- /dev/null +++ b/rules/use-anchoring-and-docking-if-you-have-a-multiline-textboxes/rule.md @@ -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. + + + +::: 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 diff --git a/rules/use-anchoring-and-docking-if-you-have-a-multiline-textboxes/setanchorproperty.jpg b/rules/use-anchoring-and-docking-if-you-have-a-multiline-textboxes/setanchorproperty.jpg new file mode 100644 index 00000000000..a4d1de07c93 Binary files /dev/null and b/rules/use-anchoring-and-docking-if-you-have-a-multiline-textboxes/setanchorproperty.jpg differ diff --git a/rules/use-anchoring-and-docking-if-you-have-a-multiline-textboxes/wronganchoranddock.jpg b/rules/use-anchoring-and-docking-if-you-have-a-multiline-textboxes/wronganchoranddock.jpg new file mode 100644 index 00000000000..869c07aace9 Binary files /dev/null and b/rules/use-anchoring-and-docking-if-you-have-a-multiline-textboxes/wronganchoranddock.jpg differ diff --git a/rules/use-anchoring-and-docking-if-you-have-a-multiline-textboxes/wrongsettings.jpg b/rules/use-anchoring-and-docking-if-you-have-a-multiline-textboxes/wrongsettings.jpg new file mode 100644 index 00000000000..cd680a867b2 Binary files /dev/null and b/rules/use-anchoring-and-docking-if-you-have-a-multiline-textboxes/wrongsettings.jpg differ