webBrowser.DocumentText重新赋值无效解决方法

因为webBrowser这个控件的webBrowser.DocumentText是异步的,所以要自己调用刷新:

webBrowser.Navigate("about:blank");
webBrowser.Document.OpenNew(false);
webBrowser.Document.Write(html);
webBrowser.Refresh();
原文地址:https://www.cnblogs.com/shitong/p/6767889.html