Re: Make a folder with a downloaded image inside it ?
What is the format of the listbox items?
Perhaps that could give us an indication of what is wrong...
Re: Make a folder with a downloaded image inside it ?
P.S. You should Close and Dispose the StreamWriter.
Re: Make a folder with a downloaded image inside it ?
Sorry guys, i have been away for a couple of days, back now though :)
Want I want to do is make a folder for each item in the listbox and also download an image into those created folders.
the format of the listbox is :
584109B7
584109A8
584108AA
58410975
so an id per line.
each downloaded image should be saved from the picturebox on the form.
Hope this explains the problem in more detail .
Thanks :D
Re: Make a folder with a downloaded image inside it ?
Anybody know a code then ?
I dont want to do it manually, it will take ages :(
Re: Make a folder with a downloaded image inside it ?
maybe if you provided the info of where the picture is being downloaded from etc... someone may help a bit sooner :) ( i know you say there's a picturebox, but when you click the list does it point to loading an image from somewhere on a pc? from a website? )
Re: Make a folder with a downloaded image inside it ?
oh what an idiot i am, i never thought of that.
picturebox1 get its image from a url from the internet.
codeview:
so each item is unique by its id, I have already made the folders on my server and uploaded the boxart for each game. Now i want a user to click a button and download each boaxart into its own folder (listbox1.selecteditem in this case)
I made a code for making folders as I said, but now I just need the images to save to those unique folders.
Lol its pretty hard to explain, i hope you understand.
Many thanks for reading.
Re: Listbox Items And Images
i just updated the first post so its easier for people to understand my problem.
Re: Listbox Items And Images
Call DownloadImage() when the button is clicked:
Code:
Private Sub DownloadImage()
If Me.ListBox1.SelectedIndex = -1 Then Exit Sub
Dim s As String = DirectCast(Me.ListBox1.SelectedItem,String)
Using wc As New Net.WebClient()
wc.DownloadFile("http://www.jtagxbox360.info/" & s & "/boxart.png",s & "_boxart.png")
End Using
End Sub