Close this search box.

C# 2.0 WebBrowser control – bug in DocumentText?

It appears that the Windows Forms webbrowser control that shipped with VS2005 and the .NET framework 2.0 has an issue that prevents setting the .DocumentText property. For me, the control behaves most consistenly when I navigate to a blank page, write to the document, and then manipulate the DocumentText, such as in this code:

HtmlDocument doc = this.webBrowser1.Document;
this.webBrowser1.DocumentText = xmlOutput;
This article is part of the GWB Archives. Original Author: Paul’s development blog

Related Posts