简体   繁体   English

C#中的Google Chrome Frame?

[英]Google Chrome Frame in C#?

How can I use Google Chrome Frame in .NET's WebBrowser control? 如何在.NET的WebBrowser控件中使用Google Chrome Frame I know I have to have: 我知道我必须:

<meta http-equiv="X-UA-Compatible" content="chrome=1">

In the beginning of the page that I'm loading, but how to do this? 在我正在加载的页面的开头,但是如何做到这一点?

Hi it's true what @ErickPetru said, but there are some other options especially with the ChromiumEmbeddedFramework. 嗨,@ ErickPetru说的是真的,但是还有一些其他选项,特别是ChromiumEmbeddedFramework。 There are 2 projects targeting the .net framework. 有两个针对.net框架的项目。 I've used CefSharp before and cefglue is new. 我之前使用过CefSharp,cefglue是新的。 Have a look at those for embedding a chromelike browser in a .net application. 看一下在.net应用程序中嵌入chromelike浏览器的那些。

cefglue cefglue

CefSharp CefSharp

Google Chrome Frame is an Internet Explorer plugin , so WebBrowser Control isn't supported (since the control itself doens't support plugins). Google Chrome Frame是一个Internet Explorer 插件 ,因此不支持WebBrowser Control (因为控件本身不支持插件)。

At this official thread is being suggested an alternative approach using Chrome Frame ActiveX itself inside your application, but I never tried it. 这个官方主题中,我们建议在您的应用程序中使用Chrome Frame ActiveX本身,但我从未尝试过。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM