Rich Text Box

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

    #1

    Rich Text Box

    Hi..

    I am having a Rich Text Control in a Form.
    Whatever Text entered into the RichText, i want to save the Text along with
    Format.
    I want to display the Text again with same format using the saved Text and
    Format.

    How to do that??

    Thanks and Regards
    Karuppasamy Natarajan


  • Robert Jacobson

    #2
    Re: Rich Text Box

    In the future, please don't crosspost to so many groups.

    You have two options. If you just want to store the formatted text in a
    variable, use the RichTextBox.Rtf property. That properrty gets or sets a
    string that contains the text itself, plus the formatting codes. (It looks
    similar to HTML.)

    If you want to save the formatted text to a file, use the SaveFile and
    LoadFile methods.

    Hope this helps,
    Robert Jacobson

    "Karuppasam y" <Karuppasamy.Na tarajan@isoftpl c.com> wrote in message
    news:u206jvDdDH A.2168@TK2MSFTN GP09.phx.gbl...[color=blue]
    > Hi..
    >
    > I am having a Rich Text Control in a Form.
    > Whatever Text entered into the RichText, i want to save the Text along[/color]
    with[color=blue]
    > Format.
    > I want to display the Text again with same format using the saved Text and
    > Format.
    >
    > How to do that??
    >
    > Thanks and Regards
    > Karuppasamy Natarajan
    >
    >[/color]


    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: Rich Text Box

      Hello,

      "Karuppasam y" <Karuppasamy.Na tarajan@isoftpl c.com> schrieb:
      [...]

      Please do not x-post to as many ngs.

      --
      Herfried K. Wagner
      MVP ยท VB Classic, VB.NET



      Comment

      Working...