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

  • submit to reddit
 webBrowser1.Document.Write("<html><body><h1>Hello World!</h1></body></html>");


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


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.