Display html page in winform(.NET 2.0)

Z

zlf

Hi,
I have some html codes, and I need to present the rendered html page to user
in winform program. I cannot find a helpful control in .NET framework. How
to do that in .NET 2.0?

Thank you
 
Z

zlf

I got it.

The following code works well:
WebBrowser webBrowser1;
// do initialization

this.webBrowser1.Navigate("about:blank");
HtmlDocument doc = this.webBrowser1.Document;
doc.Write("<html>sdfsdf<br>sdfsdf<b>sdfsdf</b></html>");
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top