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
While Application.DoEvents() fix it in a WinForms project, it was irrelevant in a WPF project.
Application.DoEvents()
I finally got it to work by using webBrowser.Write( htmlContent ) (instead of webBrowser.DocumentText = htmlContent).
webBrowser.Write( htmlContent )
webBrowser.DocumentText = htmlContent