HTML Executables in c#

Is this possible
Basically, I have a set of HTML files that I want to kind of embed in my desktop application using c#.
I was able to do so via Resources. I added all html files to resources, and loaded the index file via ResourceManager class in a WebBrowser control. Now, that index file links to few other html files (they also added to the resources). But if I click on any link in the index file loaded in WebBrowser control .. it tries to connect to the following URL: about:blank"Link Location".

Is there better ways of doing this that solves my problem


Answer this question

HTML Executables in c#

  • GSK_phili

    A simple solution would be to write out al your HTML (and images that go with it) to a temporary location on disk and then point the browser at it. If you make all the links relative then it should 'just work'. Another approach would be to intercept the load event (for the WebBrowser control) and force it to load the page you intend.


  • HTML Executables in c#