在winforms webbrowser控件中更改默认Web浏览器....
问题描述:
我正在使用webbrowser控件,webbrowser控件默认使用Internet Explorer,但我想在webbrowser控件中默认嵌入谷歌浏览器。我这样做,...............
I am using webbrowser control and webbrowser control uses internet explorer by default but i want to embed google chrome by default in webbrowser control .how i do that,...............
答
你有没有尝试谷歌寻求解决方案?
使用WPF / C#嵌入Chromium而不是IE WebBrowser控件的选项 - Stack Overflow [ ^ ]
Have you tried to google for a solution?
Options for embedding Chromium instead of IE WebBrowser control with WPF/C# - Stack Overflow[^]
首先,您不应该更改用户对他们使用的浏览器的决定。如果是兼容性问题,请通知他们并关闭您的应用程序。
其次,是什么让您确定您的用户系统甚至还有Chrome?我没有。那你怎么办呢?
你应该学到的教训: 未经用户通知和同意,不得更改用户所选的选项。除了控件的功能并修改它们之外。
First of all, you shouldn't be changing user's decision on which browser they are using. If it's a compatibility issue, notify them and close your application.
Second, what makes you certain your user's system even has Chrome? My does not. What do you do then?
The lesson you should learn: The user's selected options should not be changed without their notification and agreement. This is aside from the control's 'features' and modify them.