The following code will work with the following requirements:
- You are using .NET Framework 2.0
- You already have WebBrowser control added into your Windows Form
public void DisplayHTML(String strHTML) { if (strHTML != "") { if (this.webBrowser2.Document != null) { HtmlDocument doc = this.webBrowser2.Document.OpenNew(true); doc.Write(strHTML); } else { this.webBrowser2.DocumentText = strHTML; } } }
GD Star Rating
loading...
loading...
About Hardono
Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.
Incoming Search
.net, browser, html
halo2, off topic, nitip notifikasi, link blog ku berubah, sekarang di
http://www.andiewicaksono.com
tengkiyuuuu 😀