M
Mark
Hello,
Say I write a picture file to: 'c:\test.jpg'
Then I assign this picture to a picturebox
PbFoto.Image = Image.Fromfile("c:\test.jpg")
Next I want the overrwrite the file test.jpg with another picture.
When running, he says the file is in use when I want to overwrite it.
(if not assignd to the picture box, I can overwritte as many as I want)
I've tried 'PbFoto.Image = Nothing', but that didn't help also.
Anyone an idea how to free the file?
Say I write a picture file to: 'c:\test.jpg'
Then I assign this picture to a picturebox
PbFoto.Image = Image.Fromfile("c:\test.jpg")
Next I want the overrwrite the file test.jpg with another picture.
When running, he says the file is in use when I want to overwrite it.
(if not assignd to the picture box, I can overwritte as many as I want)
I've tried 'PbFoto.Image = Nothing', but that didn't help also.
Anyone an idea how to free the file?