Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Web Browser
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.
Posted 5-May-13 20:00pm
Edited 5-May-13 20:15pm
v2
Comments
_Damian S_ at 6-May-13 1:10am
   
Why? Sounds like you are way out of your depth here... what exactly are you wanting to create a new web browser for?
Chris N.P. at 6-May-13 1:25am
   
I want to create a browser for following reasons: 1.) To have a 100% customized browser that will benefit all my web applications. 2.) Learning how browser completely works. 3.) To make a secure browser for my server. I'm a web developer either personal or enterprise and now I want to extend it by creating my own web browser. And this is only for personal use and free for others who want to use it but not commercially.
_Damian S_ at 6-May-13 1:28am
   
I see... I think you might underestimate the complexity of developing such a product... Personally I'd use one of the browsers already in the marketplace - if for no other reason than they have teams of people keeping on top of things such as security issues etc... Good luck with it though!!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Try the WebBrowser control.

  Permalink  
Comments
Chris N.P. at 6-May-13 1:29am
   
Thanks. However I'm fully aware of WebBrowser control. So now I want to try from scratch. Or creating a new webbrowser control not related to any IE component.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  
Comments
Chris N.P. at 6-May-13 2:00am
   
Thank you. I know this is complex but I want to try wpf instead. If you could provide a tutorial for the wpf app you made before I would highly appreciate it.
Söderlund at 6-May-13 2:08am
   
I kind of hacked my way into it because there are some issues in designtime.Maybe its solved by now?
Anyway, go here https://github.com/chillitom/CefSharp and press the button that says "ZIP".
Examples are included.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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 | :laugh: There are not going to be many people who have worked on their own browser...
  Permalink  
Comments
Chris N.P. at 6-May-13 1:55am
   
Thanks. I know how complex this project is but still I want to give it a try. What I want is to create it in C# .Net however I will try to look at Chromium and see what I can find there.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 5,170
1 DamithSL 4,357
2 Maciej Los 3,750
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,851


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 6 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100