Displaying HTML
-
How would I go about displaying a HTML document inside a windows form? Is there a control that can display HTML text?
You have to use the web browser activex control that comes with IE. There is an article here that tells how to use the control in your own .NET programs. James Simplicity Rules!
-
How would I go about displaying a HTML document inside a windows form? Is there a control that can display HTML text?
Alternatively you can use the DHTML ActiveX control (DHTMLED.ocx) to use it, simply find the file (or download the latest copy from Microsoft), then add it to your toolbox and add it to your form as a normal control. The control as lots of methods that you can use to get HTML in to it, e.g. you can directly load a url: axDHTMLEdit1.LoadURL("http://www.codeproject.com"); or you can access the DOM to add HTML programatically: axDHTMLEdit1.DOM.body.innerHTML = "The Code Project"; I suggest you download the DHTMLEd SDK from Microsoft which includes documentation for all the properties and methods. This is a very powerful control but may be a bit of overkill for what you're doing.