/// <summary> /// Merges the contents of 2 RichTextBoxes /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void button4_Click(object sender, EventArgs e) { RTFBuilderbase sb = new RTFBuilder(); BuilderCode(sb); this.richTextBox3.Rtf = sb.ToString(); this.richTextBox4.Rtf = sb.ToString(); sb.Clear(); sb.AppendRTFDocument(this.richTextBox3.Rtf); sb.AppendRTFDocument(this.richTextBox4.Rtf); this.richTextBox2.Rtf = sb.ToString(); }