all groups > dotnet windows forms > may 2007 >
You're in the

dotnet windows forms

group:

Display html page in winform(.NET 2.0)



Display html page in winform(.NET 2.0) zlf
5/30/2007 12:00:00 AM
dotnet windows forms: 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

Re: Display html page in winform(.NET 2.0) zlf
5/30/2007 12:00:00 AM
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>");

"zlf" <zlfcn@hotmail.com> дÈëÏûÏ¢ÐÂÎÅ:estIWOmoHHA.4188@TK2MSFTNGP02.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button