If that's it, it's simple, but the website used by the project has extremely poor compatibility with IE (complaining: I personally think IE is too bad and the support for standards is too poor), so I had no choice but to look for other similar WebBrowser controls and found a few good replacement controls:
GeokoFx: A Firefox Geoko Engine Windows Forms Package, download on google Address: http://code.google.com/p/geckofx/ Official website: http://www.geckofx.org/
WebKit.NET:webkit的.NET封装,下载地址:http://sourceforge.net/projects/webkitdotnet/
I originally decided to use GeokoFx, because the website used by the project is very fast to open with Firefox, but I searched for a few days and didn't find out how to pass a js object to the control, when I found that Qt's webbroswer control is also an encapsulated WebKit control, I decided to use WebKit, but WebKit.NET did not directly provide a way to pass the object, and then I found another good thing:
open-webkit-sharp:对webkit.net的又一次封装,提供了很多新功能。google上下载地址:http://code.google.com/p/open-webkit-sharp/ The following is very simple, download open-webkit-sharp, copy all the files in the Core folder and the References folder to your project directory, then open your project and add the reference OpenWebKitSharp.dll and WebKit.Interop.dll (if your project is running on .NET Framework 2.0 or 3.5 references Binary_ These two files in the NET2 folder, in the case of NET4.0, refer to these two dlls in the Binary folder); Then there's the Toolbox - > Selections - > Selection OpenWebKitSharp.dll and drag WebKitBrowser from the Toolbox onto your form. It's a big step now, but to avoid all sorts of errors when using it, we need to install two supporting files first: |