I have a WebBroswer control, and I set the HTML it will display via
DocumentText, which takes a a string. This shows the HTML code from
the string in the control. But, sometimes, the WebBrowser shows
nothing. Clicking 'view source' shows: "<HTML></HTML>", and the
filename is called "about_blank[1].txt", which is the about:blank URL.
I am aware that when you set this property, the WebBrowser control
automatically navigates to the about:blank URL before loading the
specified text. And that means that the Navigating, Navigated, and
DocumentCompleted events occur when you set this property.
So, for some reason, and only sometimes, the WebBrowser STAYS on
about:blank. Should I handle the events and do something with them to
kick this in the ass and move it forward to actually displaying the
content I am passing it?
Note that adding more HTML to the SAME string and then setting
DocumentText to this will then show the HTML. So, it's finnicky when
it works and doesn't (but, it is consistent on when it does and
doesn't work).
Zytan