Connecting Tech Pros Worldwide Help | Site Map

webbrowser control image problem (offline images does not show)

Newbie
 
Join Date: Nov 2008
Posts: 3
#1: Jul 18 '09
hi,

i'm making an app which uses a webbrowser control to show some offline (not cache) html pages like a slide show. let's say pages in a folder on the desktop etc...

when it came to testing the whole thing, i figured out that the images in the html are not visible on the webbrowser control. instead there is a space where the image should be, corresponding the actual image dimensions..

and when i right click on this empty space where images should be, and click on properties, i see the image size given as -1 byte (minus 1 byte) and there is no image type.

however given any online url's to the same webbrowser control or opening the same html pages with the real internet explorer i got no problem and see the images...

i've been googling for almost 10 hours for a solution without success, so any hints are welcome. used vb 2008, .net framework 3.5, ie 7.

thx.
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#2: Jul 21 '09

re: webbrowser control image problem (offline images does not show)


Instead of specifying a URL, have you tried specifying the path to the image as such:

file:///C:\images\testing.jpg
Reply

Tags
minus 1 byte