Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Write HTML code directly to a WebBrowser control (See related posts)

 webBrowser1.Navigate("about:blank");
 webBrowser1.Document.Write("<html><body><h1>Hello World!</h1></body></html>");

Comments on this post

paulwhit posts on Jul 24, 2007 at 17:10
There seems to be an issue with this method upon subsequent updates to the same web browser control. Check out my blog post on the subject; it's had significant traffic and folks have presented a number of ways to overcome what seem to be slightly different issues when tackling this problem.

http://geekswithblogs.net/paulwhitblog/archive/2005/12/12/62961.aspx

You need to create an account or log in to post comments to this site.


Click here to browse all 5140 code snippets

Related Posts