﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Odd behaviour with richtextbox and right trim</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 20 Sep 2026 00:37:06 GMT</lastBuildDate><ttl>20</ttl><item><title>Odd behaviour with richtextbox and right trim</title><link>http://forum.strataframe.net/FindPost25211.aspx</link><description>Hi&lt;/P&gt;&lt;P&gt;I noticed some strange behaviour with a richtextbox bound to a field with right trim set in the business object mapper. When I enter 3 new lines as follows:-&lt;/P&gt;&lt;P&gt;1 [cr]&lt;BR&gt;2 [cr]&lt;BR&gt;3 [cr]&lt;/P&gt;&lt;P&gt;The lines are displayed in reverse order.&lt;/P&gt;&lt;P&gt;3&lt;BR&gt;2&lt;BR&gt;1&lt;/P&gt;&lt;P&gt;If I remove the right trim option in the business object mapper, then I can enter new lines and they are displayed in the correct order, i.e.&lt;/P&gt;&lt;P&gt;1&lt;BR&gt;2&lt;BR&gt;3&lt;BR&gt;&lt;/P&gt;&lt;P&gt;Looks like the trim is removing control codes along with spaces.&lt;/P&gt;&lt;P&gt;Aaron</description><pubDate>Tue, 17 Nov 2009 13:52:19 GMT</pubDate><dc:creator>Aaron Young</dc:creator></item><item><title>RE: Odd behaviour with richtextbox and right trim</title><link>http://forum.strataframe.net/FindPost25225.aspx</link><description>Hi Les,&lt;/P&gt;&lt;P&gt;I noticed that the BindingFormat defaults to "Rtf" and when this is set I have the behavour I mentioned. However, if I change the BindingFormat to "Text" then it works.&lt;/P&gt;&lt;P&gt;Aaron</description><pubDate>Tue, 17 Nov 2009 13:52:19 GMT</pubDate><dc:creator>Aaron Young</dc:creator></item><item><title>RE: Odd behaviour with richtextbox and right trim</title><link>http://forum.strataframe.net/FindPost25218.aspx</link><description>Hi Aaron,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I can't reproduce this. I created a CustomersBO from the StrataFrame sample data, set the Trim property for Address2 to Trim Right, dropped the BO on a Maintenance form, then clicked Edit and entered 1 [Enter], 2 [Enter], 3 [Enter], and behavior was as expected. I'm sure your experience was as you described, but I can't get the same result on my computer. Do you have any suggestions to help me repro it?&lt;/P&gt;&lt;P&gt;Les</description><pubDate>Mon, 16 Nov 2009 11:23:59 GMT</pubDate><dc:creator>Les Pinter</dc:creator></item></channel></rss>