简体   繁体   English

如何在C#中打开Goog​​le Chrome浏览器控件

[英]How can I open a google chrome control in C#

I know there is a way to add a IE control, how do you add a chrome control...? 我知道有一种添加IE控件的方法,如何添加chrome控件...? Is it even possible right now? 现在有可能吗?

I'm need this because of the fast javascript VM found in chrome. 我需要这个,因为在chrome中找到了快速的JavaScript VM。

I searched around and I don't think Google Chrome registers itself as a Windows COM+ component. 我四处搜寻,但我认为Google Chrome不会将自己注册为Windows COM +组件。 I think you're out of luck. 我觉得你不走运。

If you want to use it yourself... Chrome is based on the open source webkit rendering engine. 如果您想自己使用它,则... Chrome基于开放源Webkit渲染引擎。 Good luck though, I'm pretty sure it's not managed code friendly. 不过,祝您好运,我很确定它不是托管代码友好的。

IE control is actually ActiveX component - so it can be wrapped in .Net component. IE控件实际上是ActiveX组件-因此可以将其包装在.Net组件中。 It is not real IE, it's mainly only its rendering engine (HTML+CSS+JS) plus web client (HTTP and some more protocols) Control itself has no menu, bookmarks etc. Chrome is full featured browser. 它不是真正的IE,主要是它的呈现引擎(HTML + CSS + JS)和Web客户端(HTTP和其他协议)。控件本身没有菜单,书签等。Chrome是功能齐全的浏览器。 So you should be asking for WebKit (rendering engine chrome use, developed by Safari's guys) control. 因此,您应该要求WebKit(使用Safari的家伙开发的渲染引擎镶边)控件。

There is an outdated Mozilla ActiveX (actually Gecko rendering engine). 有一个过时的Mozilla ActiveX(实际上是Gecko渲染引擎)。 It's much more complicated to use and only available as ActiveX, no native .Net/C#. 它使用起来更加复杂,只能作为ActiveX使用,而没有本机.Net / C#。

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

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