.Net WebBrowser.DocumentText Isn't Changing!

后端 未结 9 2096
不思量自难忘°
不思量自难忘° 2020-12-09 01:14

In my vb.net program, I am using a webbrowser to show the user an HTML preview. I was previously hitting a server to grab the HTML, then returning on an asynchronous thread

9条回答
  •  自闭症患者
    2020-12-09 01:49

    While Application.DoEvents() fix it in a WinForms project, it was irrelevant in a WPF project.

    I finally got it to work by using webBrowser.Write( htmlContent ) (instead of webBrowser.DocumentText = htmlContent).

提交回复
热议问题