webBrowser.Document.Write()写入
webBrowser1.Navigate("about:blank");while (webBrowser1.ReadyState != WebBrowserReadyState.Complete) //报错“指定的转换无效” Application.DoEvents();webBrowser1.Document.Write("<html>测试</html>"); //去掉第二行,这一行报错“指定的转换无效”