webbrowser-control

How do I add a local script file to the HTML of a WebBrowser control?

This seems really dumb. I've tried a bunch of different ways and it's just not working. I have a WinForms app with a WebBrowser control. If I try with a raw html file on my desktop using the same src string, the src I put together works fine. But plugging the same stuff into the WebBrowser control won't work. Here's my code: HtmlElemen...

How can I get a handle or object reference to an HtmlElement from a WebBrowser control HtmlDocument?

Think "Firebug", but entirely from C#. I have a WebBrowser control that I've built a DOM tree for in a TreeView. I'd like to be able to set a link between each DOM element in the TreeView and its matching HtmlElement in the WebBrowser's Document so that when the node in the tree is clicked, the matching element in the Document highlight...