﻿<?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 / WinForms (How do I?)  / Populating RichTextBox content / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>forum@strataframe.net</webMaster><lastBuildDate>Wed, 07 Jan 2009 17:58:24 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Populating RichTextBox content</title><link>http://forum.strataframe.net/Topic3735-7-1.aspx</link><description>Well there are a number of ways to do this.  There are two types of localization items: messages and text values.  All messages are RTF and maintain the formatting.  They are generally used for message box items.  But you can use them in this context as well.  For example, you can create a message and pull it from the localization database like this:&lt;/P&gt;&lt;P&gt;MyRTFControl.RTF = &lt;FONT size=2&gt;MicroFour.StrataFrame.UI.Localization.RetrieveMessage(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"MyMessageKey"&lt;/FONT&gt;&lt;FONT size=2&gt;).Text&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;This would allow you to use the localization interface and still keep the RTF formatting.  &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;You can also bind our RTF control directly to a field in a table that has the RTF data as well.  Let me know if this does not answer your question.&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Fri, 20 Oct 2006 22:10:10 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>Populating RichTextBox content</title><link>http://forum.strataframe.net/Topic3735-7-1.aspx</link><description>Working on an idea with a wizard with some fairly complicated individual steps. I need to provide the user some explanation on each form, and would ideally do this using RTF where I can apply some formatting to the explanation, etc. I've been down the road of storing this kind of thing in individual RTF files on the client and loading the appropriate file at the appropriate time, but it seems kind of a kludge to do that when there is nice support in the framework for messaging lookups by key.&lt;/P&gt;&lt;P&gt;Can I use the Messaging &amp;amp; Localization stuff to store the RTF and pipe it into the RichTextBox at runtime by key?&lt;/P&gt;&lt;P&gt;Or is it just going to give me plain old text with no rich markup?&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR&gt;</description><pubDate>Fri, 20 Oct 2006 16:28:44 GMT</pubDate><dc:creator>Chris Crabtree</dc:creator></item></channel></rss>