I'm not sure I understand what you're trying to do...
Does this help?
http://www.codeproje...n_windows_forms.aspxhttp://www.codeproje...edit/HtmlEditor.aspxhttp://www.codeproje...ctrl/HtmlEditor.aspxChecking in there, they're using the MSHTML library... Ahem... If you've ever used shdocvw.dll and MSHTML, you know it's horrible.
I've got a basic tutorial written up here for some aspects of it:
http://renegademinds...abid/82/Default.aspxThe WebBrowser control in Visual Studio is just those two ruffians wrapped up. For highly controlled situations inside of your application, they're good. However, if you actually need to do HTML that will be used outside of your application, or consume HTML from outside of your application, then you have a potential problem.
Since it's basically just IE 6, you have all kinds of baggage there. If a web page is using hacks like
PIE, you could be in big trouble. The hacks that PIE uses are IE6 filters (I think they started in 5.x though, not sure), which are highly CPU intensive. If there's much going on there, then it will grind IE6 to a halt. Not good. Besides, IE6 is just plain slow anyways.
You might want to look into those links above that f0dder posted. Check out MozNet for sure. I've used the old GeckoFX control, and it's wonderful. I bought a MozNet license but haven't had time to use it quite yet. It's dirt cheap too. (I bought early, so I got a small discount, but it's still cheap.)
I checked out this quickly:
http://awesomium.com/And it does look awesome.
If you can post a bit more about what you're trying to do, maybe I can help some more.
Opening and loading HTML into the browser is pretty simple though.
WebBrowser.Navigate(fullPathToHtmlFile);
For loading in memory, use wbr.DocumentText >
http://stackoverflow...o-webbrowser-controlHowever, keep in mind that the DocumentCompleted event fires 3x per page, and isn't predictable/reliable. So you'll need to use the Navigated event, but some things will only work in DocumentCompleted... Welcome to Hell.
Does any of that help or is it relevant?