I wanted to make my own “editor” to for html, css, etc, where on one side I have the code and on the other how it looks like on the browser.
I know within c# we have the handy System.Windows.Forms.WebBrowser() that could do that for me but I wanted to be able to make it render as if it was using ie or ff or chrome browsers.
- How could I render the page some how as if it was using one of
those (considering they are installed and available within the
computer but to open on the c# winforms) ?
You would have to use the rendering engine that the other browsers use. For example, Chrome and Safari use Webkit. Getting this to work for older browsers like IE6, 7, will be much harder, since they don’t release their layout engine. IE9 has a feature that lets you render a page as an older browser, but I’m not sure if you can use that feature using the WebBrowser control.