Webbrowser and HTML documents

  • Thread starter Thread starter Johnny Jörgensen
  • Start date Start date
J

Johnny Jörgensen

Does anybody know if it's possible to use the Webbrowser control to render a
given HTML text?

What I'm looking for is something like this:

WebBrowser1.Document.Body.OuterHTML = "<b>TEST</b>"

and then I want to see TEST in bold in the webbrowser.

Is that possible?

Cheers,
Johnny J.
 
It doesn't - Because I haven't actually called the Webbrowser's Navigate
method, the document property is null. And I can't define an html document
object and assign to the webbrowser manually because the document property
is read-only.

The given code was just an example to give you an idea of what I wanted. I
think it takes some more magic to make it work, and I can't figure out how,
I'm afraid...

Cheers,
Johnny J.
 
Thanks a million, Tom - That seemed to do the trick. I guess I was looking
for a complicated solution when a simple one was right in front of my
eyes... :-)

Cheers,
Johnny J.
 
Back
Top