Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. append RTF text

append RTF text

Scheduled Pinned Locked Moved C#
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Manish K Agarwal
    wrote on last edited by
    #1

    Is there any way to append RTF text from one RichTextBox control to another RichTextBox control. Sonork ID 100:25668

    J 1 Reply Last reply
    0
    • M Manish K Agarwal

      Is there any way to append RTF text from one RichTextBox control to another RichTextBox control. Sonork ID 100:25668

      J Offline
      J Offline
      J Dunlap
      wrote on last edited by
      #2

      I've not had a need to work with the C# RichTextBox, but with the ActiveX one, you could do

      //assuming that you've selected all the text in both boxes
      rtf1.SelRTF=rtf1.SelRTF + rtf2.SelRTF;

      "Do unto others as you would have them do unto you." - Jesus
      "An eye for an eye only makes the whole world blind." - Mahatma Gandhi

      M 1 Reply Last reply
      0
      • J J Dunlap

        I've not had a need to work with the C# RichTextBox, but with the ActiveX one, you could do

        //assuming that you've selected all the text in both boxes
        rtf1.SelRTF=rtf1.SelRTF + rtf2.SelRTF;

        "Do unto others as you would have them do unto you." - Jesus
        "An eye for an eye only makes the whole world blind." - Mahatma Gandhi

        M Offline
        M Offline
        Manish K Agarwal
        wrote on last edited by
        #3

        I tried following already but do no seem to work. :confused: rtbMessage.SelectAll(); rtbDisplay.SelectAll(); rtbDisplay.SelectedRtf = rtbDisplay.SelectedRtf + rtbMessage.SelectedRtf; Sonork ID 100:25668

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups