Results 1 to 2 of 2

Thread: RichTextBox.AppendText?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    210

    RichTextBox.AppendText?

    i'm trying to append text from one rtb to another, then save it to a file. this is as far as i can get:

    VB Code:
    1. Dim TempRich As New RichTextBox
    2. TempRich.AppendText(richNote.AppendText(richNewCode.Text))

    i guess it doesn't like the second appendtext. not sure why though.

    VB Code:
    1. Dim TempRich As New RichTextBox
    2. TempRich.Text = richNote.Text & richNewCode.Text

    doesn't work either. what am i doing wrong?

  2. #2
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    you need to look at the RTF of the richtextbox , rather than the text ( if you want to be able to maintain formatting of the richtext ) , why not add the richtext straight to the first richtextbox , eg:
    VB Code:
    1. richNote.RTF += richNewCode.RTF
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width