S
Simon Jefferies
Hello,
I am trying to load an image from a file and put the image into a picturebox
with the following code:
Dim ImgThumbnail As System.Drawing.Image =
picImage.Image.FromFile(Filename).GetThumbnailImage(picImage.Width,
picImage.Height, Nothing, Nothing)
picImage.Image = ImgThumbnail.Clone
ImgThumbnail.Dispose()
The problem I am having is that it locks the file. Is there anyway to
release the lock on the file?
Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:[email protected]
www.headfirst.co.uk www.callofcthulhu.com
-
I am trying to load an image from a file and put the image into a picturebox
with the following code:
Dim ImgThumbnail As System.Drawing.Image =
picImage.Image.FromFile(Filename).GetThumbnailImage(picImage.Width,
picImage.Height, Nothing, Nothing)
picImage.Image = ImgThumbnail.Clone
ImgThumbnail.Dispose()
The problem I am having is that it locks the file. Is there anyway to
release the lock on the file?
Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:[email protected]
www.headfirst.co.uk www.callofcthulhu.com
-