M
M
Mr.Ivan2021-12-06 11:24:52
C++ / C#
Mr.Ivan, 2021-12-06 11:24:52

How to make a browser in c#?

I already did it, but it doesn't display YouTube... I did it in visual studio. Can I somehow fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
HemulGM, 2021-12-06
@HemulGM

You're not making a web browser, you're making an application with a built-in web browser. Apparently on WinForms using the WebBrowser (WebView) component. And this means that you are using the IE (Internet Explorer) engine, and the default version is 9 or even 7, which does not support a lot of things from the modern web. That is why nothing is revealed. This can be partially fixed by forcing the engine version (max. 11) through the registry for your application. But this is a crutch and will not solve almost anything in general.
For the normal operation of sites, you need to use the CEF engine, which is available for many languages.
There is also WebView2 in Windows, but it will only work in fresh OS (only win10 and win11)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question