Click here to Skip to main content
15,890,690 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have a hosted web application: http://tuts.techedu.in/kids/sapshidi/snake.html

I want to run this inside my .exe

I thought I would just be able to use something like:

webBrowser1.Navigate("http://tuts.techedu.in/kids/sapshidi/snake.html");

But that doesn't seem to work at all. I do have all the files as well for the web application.

Any ideas on how I can achieve this?

Thanks in advance

What I have tried:

Uri uri = new Uri(@"http://tuts.techedu.in/kids/sapshidi/snake.html");
webBrowser1.Navigate(uri);


webBrowser1.Navigate("http://tuts.techedu.in/kids/sapshidi/snake.html");
Posted
Updated 28-Sep-19 21:35pm
Comments
BillWoodruff 29-Sep-19 7:17am    
You might add some information about the structure of your web app.

1 solution

The built in Webbrowser control is quite antique, try CefSharp or something like that:
GitHub - cefsharp/CefSharp: .NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework[^]
 
Share this answer
 
Comments
BillWoodruff 29-Sep-19 6:15am    
Have you actually installed and used CEF ?
RickZeeland 29-Sep-19 6:37am    
Yes, it involves installing a bulk load of extra files and dll's, we used the Inno Setup installer for this. Let me know if you want more details :)

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