Re: Show images from resources in webbrowser component in c#

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



If the resources are native file resources, you should be able to use the
res: protocol for the src urls. If the images are within a managed assembly
they aren't exported in this way. The only workaround at the moment would be
to temporarily write the images to a file, then delete them when you've
finished with them.

Peter

--
Peter Foot
Windows Embedded MVP
http://www.inthehand.com | http://www.peterfoot.net |
http://www.opennetcf.org

"Roland Hochmann" <r.hochmann@xxxxxxxxxxxxxx> wrote in message
news:4301fa60.30414343@xxxxxxxxxxxxxxxxxxxxx
> Sorry I deleted one line in first message...
>
> Hi all,
>
> we use the webbrowser control from Peter Foot (Opennetcf) to show
> offline content on PPC.
>
> We load alot of images inform of "imgsrc" statements from file.
>
> But we only can show them when loading from file, how can I load them
> from resources?
>
> Can Iextend the Control for that use?
>
> Our system is: VS 2003, c# with OpenNETCF for Pocket PC 2003
>
> best regards
>
> Roland Hochmann
>
>
> On Tue, 16 Aug 2005 14:34:07 GMT, r.hochmann@xxxxxxxxxxxxxx (Roland
> Hochmann) wrote:
>
>>Hi all,
>>
>>we use the webbrowser control from Peter Foot (Opennetcf) to show
>>offline content on PPC.
>>
>>But we only can show them when loading from file, how can I load them
>>from resources?
>>
>>Can Iextend the Control for that use?
>>
>>Our system is: VS 2003, c# with OpenNETCF for Pocket PC 2003
>>
>>best regards
>>
>>Roland Hochmann
>


.



Relevant Pages

  • Re: Organization of files
    ... I had to put a 40MB database on a 10MB laptop. ... I was thinking of the problem of adding more images or sound clips. ... fairly difficult if they are resources, ... It was the Install Problem From Hell ...
    (microsoft.public.vc.mfc)
  • Re: Best practice - resources in ASP.Net Web Applications
    ... But for a website its a bad idea. ... I'm looking for some "best practice" help related to web applications and recources (images, strings, files etc). ... In Windows Forms Applications its normal to save all kinds of resources in the applications recource file - its easy to access, and you always knows where the resources are. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Embeeded resources Vs. Content files
    ... >I don't see the point in placing these resources in a satellite assembly ... > resources into a separate resource dll will make no difference because the ... >> I've also tried with images as content, loading them giving the path. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: how to set image path
    ... I can not put the resources in my class directory, ... but the "src" directory or subfolders of it. ... JVM looks in the bin folder for the image. ... So right now I have 2 folders named "images" containing all my images. ...
    (comp.lang.java.gui)
  • Re: How to Launch IE to a specific URL?
    ... The OpenNETCF site has a lot of excellent ... > right resources for getting started. ... >>> Windows .NET is not supported in .NET CF. ... >>> John ...
    (microsoft.public.dotnet.framework.compactframework)