I have a .net (3.5) WinForms application and want to display some html on one of the forms. Is there a control that I can use for this?
A:
what about the browser control? a bit heavy, but at least you'll get an accurate rendering.
Darren Kopp
2008-09-18 22:22:05
+2
A:
I was looking at the WebBrowser control but couldn't work out how to assign (set) the HTML to it...?
EDIT: Found it - Document Text
Guy
2008-09-18 22:23:01
`webBrowser.DocumentText = htmlString`
Kit Roed
2010-06-24 15:06:22
A:
In the control you should be able to do something like .Document.Body.InnerHTML = Your HTML. I don't remember the exact properties but it would be something along those lines.
EBGreen
2008-09-18 22:26:06