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

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

r
Tue Aug 16 09:39:42 CDT 2005

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@mairdumont.com (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


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

Peter
Tue Aug 16 10:13:05 CDT 2005

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@mairdumont.com> wrote in message
news:4301fa60.30414343@news.microsoft.com...
> 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@mairdumont.com (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
>



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

r
Wed Aug 17 03:02:40 CDT 2005

Hello Peter,

thanks for the information of the originator personally!

Unfortunately we use the .NET resources in our project.
Can we add native resources?

The root of the problem is that if bigger pages with lots of images
are loaded in the browser control, sometimes it seems to hang for a
while and no messages like navigating or resize events are accepted.
After one or two tries it works, but the old messages are ignored -
not queued.

We thought that we could reduce this pause when the images were loaded
from resources.
Perhaps there is another solution?

best regards

Roland Hochmann




On Tue, 16 Aug 2005 16:13:05 +0100, "Peter Foot [MVP]"
<feedback@nospam-inthehand.com> wrote:

>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@mairdumont.com> wrote in message
>news:4301fa60.30414343@news.microsoft.com...
>> 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@mairdumont.com (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
>>
>
>