RichTextBox problem - lost background

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

    #1

    RichTextBox problem - lost background

    Hi,

    thanks Noah for your advice.

    I wrote following to read a rich text file into a RichTextBox control:

    this.m_textBox. LoadFile(openFi leDialog1.FileN ame,
    RichTextBoxStre amType.RichText );

    I created a RTF file in Word, and gave the background yellow. But when open
    the file
    in the RichTextBox control the background becomes white instead of yellow.

    Can anyone tell me what is the problem? Many thanks


    Yuelin


  • Noah Coad [MVP .NET/C#]

    #2
    Re: RichTextBox problem - lost background

    Glad it was of help. Simply put, the RichTextBox control doesn't support
    that formatting element. It is unfortunate...

    -Noah Coad
    Microsoft MVP & MCP [.NET/C#]


    "Yuelin" <liang@lineone. net> wrote in message
    news:uAcdiutUDH A.372@tk2msftng p13.phx.gbl...[color=blue]
    > Hi,
    >
    > thanks Noah for your advice.
    >
    > I wrote following to read a rich text file into a RichTextBox control:
    >
    > this.m_textBox. LoadFile(openFi leDialog1.FileN ame,
    > RichTextBoxStre amType.RichText );
    >
    > I created a RTF file in Word, and gave the background yellow. But when[/color]
    open[color=blue]
    > the file
    > in the RichTextBox control the background becomes white instead of yellow.
    >
    > Can anyone tell me what is the problem? Many thanks
    >
    >
    > Yuelin
    >
    >[/color]


    Comment

    Working...