Append rtf content to a richtextbox

  • Thread starter Thread starter Fab
  • Start date Start date
F

Fab

Hi,

I have a two richtextbox with rtf content.
I just want to add the content of the 2 richtextbox into a third one.

When I use the code below, the richTextBox3 remains empty.
richTextBox3.Rtf += richTextBox1.Rtf;
richTextBox3.Rtf += richTextBox2.Rtf;

And of course i can't use richTextBox3.AppendText because i need to keep the
formaated text of richTextBox1 and richTextBox2.

Is there any solution ?!

Thanks !
 
Try this:

richTextBox1.SelectAll();
richTextBox1.Copy();
richTextBox3.Paste();

richTextBox2.SelectAll();
richTextBox2.Copy();
richTextBox3.Paste();
 
Back
Top