Puoi bypassare caricando l'immagine da stream invece che con l'oggetto image.fromFile
Public Function loadImageFromPath(ByVal thePath As String) As Bitmap
Try
Dim fileInfo As System.IO.FileInfo = New System.IO.FileInfo(thePath)
Dim fileStream As System.IO.FileStream = fileInfo.OpenRead()
Dim newsIco As Bitmap = Image.FromStream(fileStream)
fileStream.Close()
fileInfo = Nothing
Return newsIco
Catch
Return Nothing
End Try
End Function
Luigi Di Biasi
http://blogs.dotnethell.it/luigidibiasi/