如何使用C#从头开始创建Web浏览器? [英] How to create a web browser from scratch using C#?

查看:136
本文介绍了如何使用C#从头开始创建Web浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我打算用C#从头开始创建一个Web浏览器。但是我不知道如何以及从哪里开始。我还需要知道所需的所有组件。我将不胜感激任何建议或帮助。

Hi,

I'm planning to create a web browser from scratch using C#. However I don't know how and where to start. I also need to know all the components needed. I would appreciate any advice or help.

推荐答案

尝试WebBrowser 控件。


你可以使用webbrowser控件,我认为WPF和winforms?

但是你可以在它下面使用互联网浏览器渲染。



甚至谷歌Chrome都没有从头开始编程,它使用WebKit用于渲染。

我之前使用浏览器可能性制作了一个wpf应用程序。我使用了cefsharp并且效果非常好(html5支持)。



从头开始做这个是一个坏主意,感觉它需要一辈子才能获得javascript和css working。
You can use the webbrowser control, I think there is one for both WPF and winforms?
But then you would have internet explorer rendering under it.

Not even Google Chrome is programmed from the ground up, it uses WebKit for rendering.
I made a wpf app before with browser possibilities. I used cefsharp for it and it worked really well (html5 support).

Doing it from scratch is a bad idea and it feels like it would take a lifetime to get javascript and css working.


我认为你并没有意识到涉及多少工作,这里将涉及多少(冲突的)标准...但可能是最好的路由是从一个开源浏览器开始,看看他们是如何做到的。有一些,快速谷歌会找到相当多的信息,但看看铬项目 [< a href =http://www.chromium.org/Hometarget =_ blanktitle =New Window> ^ ] - 这是Google Chrome背后的操作系统浏览器。



请记住,如果您需要有关此类操作系统项目的详细帮助,您可能需要与已经处理过该项目的人员进行交流,这意味着您从中获取源代码的网站, 不在这里! :笑:不会有很多人在他们自己的浏览器上工作过......
I don't think you realize quite how much work is involved, and how many (conflicting) standards are going to be involved here...but probably the best route is to start with an open source browser and see how they do it. There are a few, and a quick google will find you a fair amount of info, but have a look at The Chromium Project[^] - it's the OS browser behind Google Chrome.

Bear in mind that if you need detailed help with an OS project like this, you are probably going to have to talk to people who have worked on it, which means the site you get the source from, not here! :laugh: There are not going to be many people who have worked on their own browser...


这篇关于如何使用C#从头开始创建Web浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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