creating HTML content using resx:// protocol and embedded resources

Hi,

In my application, I would like to embed several HTML pages along with images as resources. I would then like a WebBrowser control to display the content directly from the library/application.

However, I cannot find a useful example of this approach and I am looking for some guidance. Any help would be appreciated.

Best wishes for Christmas!

Sigol.



Answer this question

creating HTML content using resx:// protocol and embedded resources

  • mitchwardrop

    Can anybody help me at all
  • HKEC

    Normally you would need the following syntax for resx:

    resx://<AssemblyName without extension>/<Name of the resource file>/<Name of the resource>

    Eg:

    resx:://ClassLibrary1/Resource1/Image1.bmp

    I have never tried this myself though so I am not 100% sure about this. Also the assembly has to be strongly named and deployed in the GAC as far as i know.



  • fshrago

    Hi Gabriel,

    Thank you for your help. I tried this but not installing in the GAC. I'll check this out and post back my results.

    Best wishes,

    Sigol.


  • creating HTML content using resx:// protocol and embedded resources