Webbrowser.getattrubute Please help

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
2 posts Page 1 of 1
Contributors
User avatar
muttley1968
Hardcore Programmer
Hardcore Programmer
Posts: 622
Joined: Thu Jun 17, 2010 11:54 pm

Hi I am trying to add function to save images from my webbrowser context menu
I attempted to follow a tut I found on google using the html.getattribute ("src") metthord
but this only works for static images and I would like it to work for ALL image like internet explorers does it just close so I could save google image photos and facebook pics and things like that

Could anyone help me please

Thank you
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4392
Joined: Tue Aug 04, 2009 1:47 am

In the webbrowser Document Completed event, try:
Code: Select all
For Each PagePic As HtmlElement In WebBrowser1.Document.Images  
 'Do something with the image here
           ' PagePic.GetAttribute("src") 
        Next 
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
2 posts Page 1 of 1
Return to “Coding Help & Support”