Unhappywebsite images

Posts 110 of 10 · Page 1 of 1
website images
hey guys mhh i was thinking of making like a program were you can put the website url and it gives you all images on the website? can someone help me or if anyone knows a tutorial on that?
pretty easy.

Something like :

Code:
Dim Images As HtmlElementsCollection ' Or something
Images = WebBrowser1.Document.GetElementByTagName("img") ' Or something xD

For Each Img As HtmlElement In Images
Listbox1.Items.Add(Img.GetAttribute("src")) ' Or something :P
Next
Its something like that, i dont code VB anymore, but i still remember things xD
okk thanxx for helping out, im still designing the program cuz i wana make it nice n big with many features not like all the ppl following a utube tut and releasing some lil wierd program so imma try it later and let you know
I will try to make one and gice u the source. . .
Quote Originally Posted by alvaritos View Post
I will try to make one and gice u the source. . .
okkay thank you so much
Well Source is . . .
Code:
Dim vv as integer = 0
Dim htmlDocument As HtmlDocument = Me.WebBrowser1.Document
        Dim htmlElementCollection As HtmlElementCollection = htmlDocument.Images
        Dim Img1 As HtmlElementCollection
        Images = WebBrowser1.Document.GetElementsByTagName("img")
        For Each Img As HtmlElement In Img1
            ListBox1.Items.Add(Img.GetAttribute("src"))
        Next
        vv = ListBox1.Items.Count
        Label1.Text = vv & " " & "Images"
        Label1.ForeColor = Color.Green
umhh thats a lil confuzing lol
like i said im a beginner
can u tv me sometime ?
I can use teamviewer or msn . . .
teamviewer tomorrow?
Take it to private messages or VMs, I don't care which but a thread isn't the place for this conversation.
Posts 110 of 10 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?