Getting the file from the OpenFileDialog: File. GetFiles Application. Delete SelectedFile Showing the image when selected from the picbox. If lstImages. Monday, August 4, AM. FileStream OpenFileDialog1. FileName, IO. Open, IO. Friday, August 8, PM. Friday, August 8, AM. Please also check the Task Manager for any processes accessing this image file.
However, using MyImage. Delete FileName frees up the file so it isn't being "used" anymore. Wednesday, July 7, PM. I was having a similar problem unable to delete a displayed picture and changing: picBoxShow. FromFile fileName to: picBoxShow. Load fileName fixed it. Wednesday, August 18, AM. If anyone has a problem like this then force garbage collection using GC. Collect either at the end of the load or at the beginning of the save.
Hope this helps. Wednesday, January 12, PM. Thanks Gordon. I've been struggling with this for hours. What file? What is a 'user-mapped section'??? Facebook Like. Twitter Tweet. Be a part of the DaniWeb community. Sign Up — It's Free! Reply to this Topic. This topic is old! No one has contributed to this discussion in over 10 years.
Are you sure you have something valuable to add to revive the existing conversation? Consider starting a new topic instead. Any ideas. Some of the code is written below. Thanks in advanced for any help or advice. Getting the file from the OpenFileDialog: File. GetFiles Application. Delete SelectedFile Showing the image when selected from the picbox.
If lstImages. Monday, August 4, AM. FileStream OpenFileDialog1. FileName, IO. Open, IO. Friday, August 8, PM. Friday, August 8, AM. Please also check the Task Manager for any processes accessing this image file. However, using MyImage. Delete FileName frees up the file so it isn't being "used" anymore. Wednesday, July 7, PM. I was having a similar problem unable to delete a displayed picture and changing: picBoxShow. FromFile fileName to: picBoxShow.
Load fileName fixed it. Wednesday, August 18, AM. If anyone has a problem like this then force garbage collection using GC. Collect either at the end of the load or at the beginning of the save.
0コメント