Click here to Skip to main content
15,901,666 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
Hello there fellow users here on CodeProject!

So I recently posted a question about WinForm theme options and as it turns out, WinForm might not be the way to go, A person said that there isnt alot of options for chaning the theme in a WinForm,

Basically what I want to accomplish is.
I want my webbrowser to have a nice clean standard theme like Firefox on startup.
(Not the standard Windows TitleBar)

& I want to be able to have a list of different themes that I can choose from while using the webBrowser.

Now, the question is, what would make it easier for me toa ccomplish this goal.
By using a WPF Application or WinForm.

Please do share your opinion and give me some pointers if you feel the need too.
Posted

1 solution

Do you even know what that WebBrowser[^] control is? It is simply a wrapper for underground IE that is installed, in older systems or frameworks, it is precisely IE 7.

To answer your question, "Which is better?"

The answer is simply, WPF. WPF provides much more flexibility, extension support and yes, the theme of each and every control can be edited. If you do not like the old theme, old control UI, you can change them all. Just edit their templates, that's it, you're done! WinForms doesn't support as much flexibility.

Now, if you want to create a web browser on top of IE, I won't say that it is a good idea. It is a very bad idea, because the WebBrowser control provides you with IE 7, as the engine. You can somehow create the web browser and add a few extensions and work out with some problems that may arise with the browser. That is pretty much easy and simple, have a look at my article: Creating a custom Web Browser using .NET's WebBrowser Control[^]

That said, if you want to build a "real browser", consider using some good rendering engines and build on top of them. The following links will help you in the process:

https://msdn.microsoft.com/en-us/library/system.windows.controls.webbrowser(v=vs.110).aspx[^]
A better WPF-Browser-Control (IE-Wrapper)[^]
C#: WebBrowser vs Gecko vs Awesomium vs OpenWebKitSharp: What To Choose And How to Use[^]
 
Share this answer
 
Comments
BladeLogan 15-Nov-15 7:00am    
Thank you sir, I will keep that in mind, there was so much more to making a webBrowser then I thought, & One thing I've noticed is that it was running on the IE 7 engine wich is generally a bad idea because it is as you said IE, But yeah I will scrap that project, use whaat I've learned to far to create a new one with my "own" engine, thank you.
BladeLogan 15-Nov-15 8:05am    
Afzaal, I was wondering, if i made a webbrowser with the Awesomeium IDK, would I be able to get sued if I released it? Might be a stupid question.

Not planning on making any money with it or generate any revenue since it is a webbrowser, but it just crossed my mind & I want to take safety precautions.
Afzaal Ahmad Zeeshan 15-Nov-15 9:26am    
In that case you should consider checking their license details. License details usually include the "Can share, can remake, can distribute" and other similar things discussed in there.

If you are not going to make money by that, why not share it in the open source community? In open source, many of the charges are removed. :-) Many APIs support you while in open source.
BladeLogan 15-Nov-15 10:39am    
Oh, well that is splended! I will try to look for something under the lines of "Can share, can remake, can distribute" & btw, do you know any good open source communities?
Afzaal Ahmad Zeeshan 15-Nov-15 10:56am    
GitHub may be what you are looking for.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900