更换.NET WebBrowser控件有更好的浏览器,如Chrome? [英] Replacing .NET WebBrowser control with a better browser, like Chrome?

查看:995
本文介绍了更换.NET WebBrowser控件有更好的浏览器,如Chrome?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有比较简单的方法来插入一个现代的浏览器到.NET应用程序?

Is there any relatively easy way to insert a modern browser into a .NET application?

据我了解,在 web浏览器控制是一个包装的 IE ,它不会只是它看起来像一个问题这是一个非常老版的 IE ,以及所有在CSS螺丝起坐限嗣继承而言,潜在的安全隐患(如渲染引擎不打补丁,可我真的很期待数不胜数的缓冲区溢出问题被固定),和其他的问题。

As far as I understand, the WebBrowser control is a wrapper for IE, which wouldn't be a problem except that it looks like it is a very old version of IE, with all that entails in terms of CSS screw-ups, potential security risks (if the rendering engine wasn't patched, can I really expect the zillion buffer overflow problems to be fixed?), and other issues.

我使用的 Visual Studio的C#的(例如preSS版 - ?这有什么区别就在这里)

I am using Visual Studio C# (express edition - does it make any difference here?)

我想一个好的Web浏览器在我的应用程序集成。在有些国家,我只是用它来处理用户注册过程中,界面与我的一些网站的功能和秩序的其他东西,但我心里有另一个应用程序,这将需要更多嗯...控制。

I would like to integrate a good web browser in my applications. In some, I just use it to handle the user registration process, interface with some of my website's features and other things of that order, but I have another application in mind that will require more err... control.

我需要:


  • ,可我的应用程序的窗口(而不是一个单独的窗口)
  • 里面集成了浏览器
  • 对CSS,JS和其他网络技术的良好支持,堪与任何现代的浏览器

  • 基本的浏览器功能,如导航,后退,重装...

  • 自由访问页面code和输出。

  • A browser that can integrate inside a window of my application (not a separate window)
  • A good support for CSS, js and other web technologies, on par with any modern browser
  • Basic browser functions like "navigate", "back", "reload"...
  • Liberal access to the page code and output.

我在想浏览器,因为它来自BSD许可,但我只是用最新版本的IE浏览器一样快乐。

I was thinking about Chrome, since it comes under the BSD license, but I would be just as happy with a recent version of IE.

尽可能,我希望让事情变得简单。最好的是,如果人能修补现有的 web浏览器控制,它已经做了什么,我需要70%左右,但我不认为这是可能的。

As much as possible, I would like to keep things simple. The best would be if one could patch the existing WebBrowser control, which does already about 70% of what I need, but I don't think that's possible.

我已经找到了Mozilla的ActiveX控件(<一个href=\"http://www.iol.ie/~locka/mozilla/control.htm\">http://www.iol.ie/~locka/mozilla/control.htm)但看起来它是一个老版本,所以它并不一定改善。

I have found an activeX control for Mozilla (http://www.iol.ie/~locka/mozilla/control.htm) but it looks like it's an old version, so it's not necessarily an improvement.

我打开的建议

推荐答案

结帐的 CefSharp 的绑定,我开始了一段时间后,值得高兴的一个项目得到了由回升社区转身为神奇。

Checkout CefSharp .Net bindings, a project I started a while back that thankfully got picked up by the community and turned into something wonderful.

该项目包装了的铬嵌入式框架的,并在一些重大项目,包括RDIO的Windows客户端,Facebook的Messenger的用于Windows和Github上的Windows已被使用。

The project wraps the Chromium Embedded Framework and has been used in a number of major projects including Rdio's Windows client, Facebook Messenger for Windows and Github for Windows.

它提供了对的 WPF 的浏览器控件和的WinForms 的并且有大量的特性和扩展点。是基于铬它的酷热快。

It features browser controls for WPF and Winforms and has tons of features and extension points. Being based on Chromium it's blisteringly fast too.

从抓斗的NuGet它:安装封装CefSharp.Wpf 安装封装CefSharp.WinForms

Grab it from NuGet: Install-Package CefSharp.Wpf or Install-Package CefSharp.WinForms

检查出的例子,给你的想法/反馈/拉请求: https://github.com/cefsharp/CefSharp

Check out examples and give your thoughts/feedback/pull-requests: https://github.com/cefsharp/CefSharp

BSD许可证

这篇关于更换.NET WebBrowser控件有更好的浏览器,如Chrome?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆