dgburton
Sep 15th, 2002, 01:07 PM
Could anyone tell me why this works the first time but not the second time it's called:
Dim wc As New System.Net.WebClient()
wc.DownloadFile("http://217.37.196.12/halfsize.jpg", _
"c:\pic.jpg")
Dim bgImage As Image = Image.FromFile("C:\pic.jpg")
Panel1.BackgroundImage = bgImage
I think it's because I'm trying to download the file again to the same filename which is in use.
Could anyone suggest a workaround?
Many thanks,
Dan
Dim wc As New System.Net.WebClient()
wc.DownloadFile("http://217.37.196.12/halfsize.jpg", _
"c:\pic.jpg")
Dim bgImage As Image = Image.FromFile("C:\pic.jpg")
Panel1.BackgroundImage = bgImage
I think it's because I'm trying to download the file again to the same filename which is in use.
Could anyone suggest a workaround?
Many thanks,
Dan