DZone 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

Snippets has posted 5883 posts at DZone. View Full User Profile

Write HTML Code Directly To A WebBrowser Control

05.08.2007
| 17627 views |
  • submit to reddit
        
 webBrowser1.Navigate("about:blank");
 webBrowser1.Document.Write("<html><body><h1>Hello World!</h1></body></html>");
    

Comments

Snippets Manager replied on Sat, 2008/08/16 - 5:10am

qwer

Snippets Manager replied on Tue, 2007/07/24 - 4:08pm

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