title: Broken tables in RichTextBox control (word wrap)
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1928853/why-isnt-the-richtextbox-displaying-this-table-properly">Why isn’t the richtextbox displaying this table properly?</a>  </p>
  </blockquote>
  
  
  
  <p>We are having problems with the Windows.Forms.RichTextBox control in Visual Studio 2008. </p>
  
  <p>We are trying to display text supplied as an RTF file by a 3rd party in a windows forms application (.NET 3.5). In this RTF text file there are tables, which contain text that spans multiple lines. The RTF file displays correctly when opened with either WordPad or Word 2003.</p>
  
  <p>However, when we load the RTF file into the RichTextBox control, or copy &amp; paste the whole text (including the table) into the control, the table does not display correctly - the cells are only single line, without wrapping.</p>
  
  <p>Here are links to images showing the exact problem:</p>
  
  <ul>
  <li><p><a href="http://www.coredumped.de/pics/rtf-good.jpg" rel="nofollow noreferrer">Correctly displayed in WordPad</a></p></li>
  <li><p><a href="http://www.coredumped.de/pics/rtf-bad.jpg" rel="nofollow noreferrer">Incorrectly displayed in RichTextBox control</a></p></li>
  </ul>
  
  <p>I have googled for solutions and 3rd party .net RTF controls without success. I have found this exact problem asked on another forum without an answer (in fact that's where the link to the images come from) so I'm hoping stack overflow does better ;-) </p>
  
  <p>My preferred solution would be to use code or a 3rd party control that can correctly render the RTF. However, I suspect the problem is that the RichTextBox control only supports a subset of the full RTF spec, so another option would be to modify the RTF directly to remove the unsupported control codes or otherwise fix the RTF file itself (in which case any information as to what control codes need to be removed or modified would be a huge help).</p>