Lewis,
How do you expect to transform the content of the HTML file to rich text
format? The formats are inherently different, and can not be swapped out.
Also, the reason that the size of the content returned from the
DocumentText property is less than the actual size of the file is because
the DocumentText property returns the text, not the HTML markup, so the text
will always be of smaller size.
Why not just keep the contents in the web browser control? Do you have
need to edit it? If you do, then you will need to look into MSHTML hosting
services to enable editing in the web browser control.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"myzm" <my****@hotmail.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
Hello there,
I use webbrowser loading a web page and want to display the html file
in a RichtextBox. I find out that the size of the DocumentText is far
less than the actual size of the html file. So there are only part of
the html file is showed in the RichtextBox. Anyone has idea about this
problem? Thanks.
Lewis