Here is my VB.net 2010 code when a cell in a datagrid is clicked strPath being set to the full path of the file
Dim fs As New FileStream(strPath, FileMode.Create, FileAccess.Write)
k = UBound(myData)
If k > 0 Then fs.Write(myData, 0, k) fs.Flush() fs.Close()
fs.Dispose() picImage.Load(strPath)
picImage.SizeMode = PictureBoxSizeMode.Zoom
Else fs.Close()
fs.Dispose()
End If
The next time the code is accessed, ie a cell in the datagrid is clicked I get a "The process cannot access the file" error
The recent iOS (and macOS) updates feel more like incremental releases than major updates. Relatively modest changes and used as an excuse for dropping support for older devices. Although it does feel like iOS 26 might be visually very different, perhaps to take media attention away from Apple Intelligence problems.
Question
keymac
Here is my VB.net 2010 code when a cell in a datagrid is clicked strPath being set to the full path of the file
Dim fs As New FileStream(strPath, FileMode.Create, FileAccess.Write)
k = UBound(myData)
If k > 0 Then
fs.Write(myData, 0, k)
fs.Flush()
fs.Close()
fs.Dispose()
picImage.Load(strPath)
picImage.SizeMode = PictureBoxSizeMode.Zoom
Else
fs.Close()
fs.Dispose()
End If
The next time the code is accessed, ie a cell in the datagrid is clicked I get a "The process cannot access the file" error
Link to comment
https://www.neowin.net/forum/topic/1383522-the-process-cannot-access-the-file/Share on other sites
1 answer to this question
Recommended Posts