Results 1 to 3 of 3

Thread: save and load richtextbox?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2004
    Posts
    294

    save and load richtextbox?

    RichTextBox1.SaveFile App.Path & "\datafile.txt" when i try to save the contents in richtextbox using that code, it seems like it saves everything including the front style + text + font size. how do i make it so it only saves the text?

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: save and load richtextbox?

    VB Code:
    1. RichTextBox1.SaveFile App.Path & "\datafile.txt"[b], rtfText[/b] 'as opposed to the default rtfRTF value

  3. #3
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: save and load richtextbox?

    try this:
    VB Code:
    1. RichTextBox1.SaveFile (App.Path & "\datafile.txt"), rtftext

    EDIT: my bad, forgot to set the flag!!
    Show Appreciation. Rate Posts.

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