Problem inserting formatted text from richtext into anotherrichtextbox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • IMAFriend

    Problem inserting formatted text from richtext into anotherrichtextbox

    So, if I have 2 richtextboxes, call them rtbSource and rtbTarget.

    I can say rtbTarget.rtf = rtbSource.rtf and it works.

    But if rtbTarget already has something in it, how can I 'insert' the
    text from source into target?

    If I use rtbTarget.selec tedtext = rtbSource.text, it inserts
    plaintext.

    If I use rtbTarget.selec tedtext = rtbSource.rtf, it inserts plaintext
    with all the rtf commands and symbols.

    Any help? Thanks bunches!
  • Steve Gerrard

    #2
    Re: Problem inserting formatted text from richtext into another richtextbox

    SelectedRtf property.

    IMAFriend wrote:
    So, if I have 2 richtextboxes, call them rtbSource and rtbTarget.
    >
    I can say rtbTarget.rtf = rtbSource.rtf and it works.
    >
    But if rtbTarget already has something in it, how can I 'insert' the
    text from source into target?
    >
    If I use rtbTarget.selec tedtext = rtbSource.text, it inserts
    plaintext.
    >
    If I use rtbTarget.selec tedtext = rtbSource.rtf, it inserts plaintext
    with all the rtf commands and symbols.
    >
    Any help? Thanks bunches!

    Comment

    Working...