因为webBrowser这个控件的webBrowser.DocumentText是异步的,所以要自己调用刷新:
webBrowser.Navigate("about:blank"); webBrowser.Document.OpenNew(false); webBrowser.Document.Write(html); webBrowser.Refresh();
webBrowser.DocumentText重新赋值无效解决方法
原文:http://www.cnblogs.com/shitong/p/6767889.html