开发者

What's the relationship with C# WebBrowser Control and the IE Installed on my computer?

Recently, I'm developing 开发者_运维百科an App using Winform and WebBrowser Control. But the WebPage seems different in WebBrowser, and then I find that if the App runs in a computer which just installed IE6, some pages are look weird. I want to know the relationship between the control and IE installed on my computer, and trying to do this: give my user an stable UI even the IE installed on the user's computer are different.

Thanks!


The WebBrowser control in C# is just MSHTML, also known as the Trident Engine. Internet Explorer is a very simple UI wrapper for MSHTML, but it also servers as the update mechanism for MSHTML: your C# gets the MSHTML version matching the installed IE version. And yes, that can be IE6.

The solution is of course to distribute your own web browser component, e.g. WebKit (which powers Chrome and Safari)


You could replace default browser with more stable :

Replacing .NET WebBrowser control with a better browser, like Chrome?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜