I want to show html contents in my form. I tried to it with rich text box.
rtBox.Text = body;
but it fails.
How to show html contents in rich text box..?? Note: i am using VS-2008 2.0
I want to show html contents in my form. I tried to it with rich text box.
rtBox.Text = body;
but it fails.
How to show html contents in rich text box..?? Note: i am using VS-2008 2.0
RTF encoding is different from HTML. You cannot do this straight away. Rowland has rightly suggested WebBrowser
control.
If not, then you need to write your own HTML to RTF converter or find something similar.
You can try the HTML control for .NET which I wrote: see http://www.modeltext.com/html/
It's a custom control to render HTML for Windows Forms, which doesn't use a web browser.