<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Adding new line to rich text box in c#</title><link>https://www.infopathdev.com:443/forums/thread/121016.aspx</link><pubDate>Mon, 20 May 2019 06:25:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121016</guid><dc:creator>MaroHamamjyan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121016.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=121016</wfw:commentRss><description>Is there a way to get new line in rich text box without using C#? I need to work in InfoPath, would like the rule to work when a button is clicked. I tried XML but it didn&amp;#39;t work. Do you have any smaple that would work just in InfoPath maybe from reading new line command from other source?</description></item><item><title>Re: Adding new line to rich text box in c#</title><link>https://www.infopathdev.com:443/forums/thread/105411.aspx</link><pubDate>Fri, 05 Feb 2016 16:50:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105411</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105411.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=105411</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Check this site: &lt;a href="http://www.bizsupportonline.net/use-rich-text-box-infopath.htm"&gt;http://www.bizsupportonline.net/use-rich-text-box-infopath.htm&lt;/a&gt;&lt;/p&gt;&lt;p&gt;It says InfoPath 2007, but will be pretty much the same for 2010 and 2013.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Adding new line to rich text box in c#</title><link>https://www.infopathdev.com:443/forums/thread/105410.aspx</link><pubDate>Fri, 05 Feb 2016 16:37:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105410</guid><dc:creator>waelt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105410.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=105410</wfw:commentRss><description>Do you have any example that can help me out ?</description></item><item><title>Re: Adding new line to rich text box in c#</title><link>https://www.infopathdev.com:443/forums/thread/105409.aspx</link><pubDate>Fri, 05 Feb 2016 16:32:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105409</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105409.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=105409</wfw:commentRss><description>I think you have to get the inner xml of the node - then do your replace, then set the inner xml of the node....</description></item><item><title>Re: Adding new line to rich text box in c#</title><link>https://www.infopathdev.com:443/forums/thread/105408.aspx</link><pubDate>Fri, 05 Feb 2016 16:25:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105408</guid><dc:creator>waelt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105408.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=105408</wfw:commentRss><description>I tried that, but the form is typing &lt;br /&gt; instead of a new line.. I can add them manually but it is not working that way... weird</description></item><item><title>Re: Adding new line to rich text box in c#</title><link>https://www.infopathdev.com:443/forums/thread/105407.aspx</link><pubDate>Fri, 05 Feb 2016 16:15:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105407</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105407.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=105407</wfw:commentRss><description>&lt;p&gt;Open the XML in a text editor and look at some rich text with line breaks. :) It is XHTML. You&amp;#39;ll need to replace your &amp;quot;;&amp;quot; with &amp;quot;&amp;lt;br /&amp;gt;&amp;quot; instead I think.&lt;/p&gt;&lt;p&gt;EDITED to add the &amp;quot;&amp;lt;br /&amp;gt;&amp;quot; back in, since the browser ate it.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Adding new line to rich text box in c#</title><link>https://www.infopathdev.com:443/forums/thread/105406.aspx</link><pubDate>Fri, 05 Feb 2016 15:57:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105406</guid><dc:creator>waelt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105406.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=105406</wfw:commentRss><description>I&amp;#39;m trying to add a new line in a RichTextBox using the following:
execSummary = execSummary.Replace(&amp;quot;;&amp;quot;, System.Environment.NewLine); //execSummary is a string
I&amp;#39;m trying to replace every semi-column with a new line when the user presses a button, but what happens is that the semi column will only disappear and have a white space instead. 
Is there anyway I can add a new line using c#, or can I do it without coding?
What is weird, when I show the modified text in a message box it is showing as it should be! But not when I check the rich text box .... o.O

Thank you</description></item></channel></rss>