Closed D3FAU4T closed 1 year ago
Finally found the problem why it works in browser and not in the C# WinForms. The main problem was that the WebBrowser
of C# WinForms by default uses Internet Explorer
as the Engine which Microsoft deprecated decades ago and that is why the contents are not loading properly. Who uses that in the current year 💀
Using a third party open source browser should fix the issue.
Currently trying with CefSharp
nuget package. It is a Chromium-based Web Browser. Hopefully it should fix the issue.
Implementing CefSharp
Chromium-based browser fixed the issue. HTML, CSS and JS files are now loading properly.
Script.js error in C# Panel rendering
The following error occurs when trying to render the HTML file in a panel of C# Windows Form Application, however when the html file is run on browser, the
script.js
file works perfectly without any error. (Image below)Resources: