In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces how to replace the WebBowser control with the Chrome kernel in C#. The content is very detailed. Interested friends can use it for reference. I hope it will be helpful to you.
Preparatory work
First of all, you have to understand that the kernel of the Chrome browser is not Chrome, but Webkit, so all we have to do is find the Webkit project.
1. Download WebKit's project bin at the following URL:
Https://sourceforge.net/projects/webkitdotnet/files/WebKit%20.NET%200.x/0.5/WebKit.NET-0.5-bin-cairo.zip/download .
two。 The directory structure after download and decompression is as follows:
3. Put everything under the bin folder (yes! Is all files copied), and paste into the project folder, the target directory is: project name / bin/Debug/
4. Import Webkitbrowser's dll into your project. The operations in VS2015 are as follows (other analogies):
Under Solution Explorer, select your project name, then right-click, select Add, and then select Reference, as shown below:
5. In the pop-up dialog box. Select Browse-> Browse..., and then select the WebKitBrowser.dll import pasted previously under your: project name / bin/Debug. The result is as follows:
Coding phase
1. What you need to do, first select the WebKitBrowser.dll in the bin directory you downloaded earlier, and then copy it, as shown below:
two。 In the control bar of C#, create a custom C# control bar, for example, mine is called WebBrowser, and then paste the dll you just copied in the toolbar, and the final effect is as follows:
Then you can use the WebKitBrowser control normally.
3. It is done. Through this website, you can test the browser kernel at http://ie.icoa.cn/
As for the running code, it is shown below:
1 private void Form1_Load (object sender, EventArgs e) 2 {3 webKitBrowser1.Navigate ("http://ie.icoa.cn/");4} about how to replace the WebBowser control with the Chrome kernel in C # is shared here. I hope the above content can be helpful to everyone and learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.