vb.net 中的 Google Chrome 框架

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14803833/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 12:17:02  来源:igfitidea点击:

Google Chrome Frame in vb.net

vb.netgoogle-chromebrowsercontrolsframe

提问by dkapa

I need to load a website in a application, and this website only works with Google Chrome

我需要在应用程序中加载一个网站,而该网站仅适用于 Google Chrome

After I install Google Chrome Frame I saw i have a new Reference: ChromeTabLib

安装 Google Chrome Frame 后,我看到我有一个新的参考: ChromeTabLib

I'm trying to use it, but I don't know how.

我正在尝试使用它,但我不知道如何使用。

Does someone know how I can use a Browser Control with Google Chrome Frame in Visual Basic.net?

有人知道如何在 Visual Basic.net 中使用带有 Google Chrome 框架的浏览器控件吗?

UPDATE: I tried to use Webkit but the website doesnt works with Webkit. LOL

更新:我尝试使用 Webkit,但该网站不适用于 Webkit。哈哈

UPDATE2: I added ChromeFrame COM tool, and when I drop on the form, i get: This message

UPDATE2:我添加了 ChromeFrame COM 工具,当我放下表单时,我得到: 这条消息

回答by Brian Webster

You probably will need to use WebKit instead. WebKit drives Chrome. There are a few open source options.

您可能需要改用 WebKit。WebKit 驱动 Chrome。有一些开源选项。

This one looks very promising: WebKit.NET. It has fairly active forums.

这个看起来很有前途:WebKit.NET。它有相当活跃的论坛

WebKit .NET is a control library wrapper for WebKit written in C#. The aim is to make it easy for users to incorporate WebKit into their .NET applications.

WebKit .NET 是用 C# 编写的 WebKit 控件库包装器。目的是使用户能够轻松地将 WebKit 合并到他们的 .NET 应用程序中。

Here is a promising tutorial. From the tutorial:

这是一个很有前途的教程。从教程:

To use the control in the designer, right click the toolbox and select Choose Items -> .NET Framework Components. Click 'Browse...', navigate to the WebKit .NET directory and select WebKitBrowser.dll. The WebKitBrowser control should appear in the list as below

要使用设计器中的控件,请右键单击工具箱并选择“选择项”->“.NET Framework 组件”。单击“浏览...”,导航到 WebKit .NET 目录并选择 WebKitBrowser.dll。WebKitBrowser 控件应出现在列表中,如下所示

You can use the control's navigate function to load a page:

您可以使用控件的导航功能加载页面:

private sub button1_Click(byref sender as object, byval e as EventArgs)
    webKitBrowser1.Navigate(textBox1.Text)
end sub

Related Question: Google chrome control for .net

相关问题.net 的 Google chrome 控件