The Design of Software (CLOSED)

A public forum for discussing the design of software, from the user interface to the code architecture. Now closed.

The "Design of Software" discussion group has been merged with the main Joel on Software discussion group.

The archives will remain online indefinitely.

WebBrowser control Image List help

Hi Guys,

I found Webbrowser1.document.image.item(x)


but how do I get a list of the images and get their urls?


it wont return the URL string.

here is what I have

For Each t As HtmlElement In WebBrowser3.Document.Images
    ListBox1.Items.Add(t)
Next


I know htmlelement is probably wrong but What am I looking for. can someone make that work?


and does the image list include all images local and remove and all in CSS?  how acurate and thurough is the list? anyone have used this? 

I got the image list from plain  IMG tags

but how do I get a list of images from other types like from CSS image referances

This worked for me.  But only for <img tags.


For Each ImgElement As HtmlElement In WebBrowser3.Document.Images
  ListBox1.Items.Add(ImgElement.GetAttribute("SRC"))
Next


is there a simple way of geting other types of image tags? or do I have to parse manually?  anyone know.? Brow
Brow
Monday, March 26, 2007
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz