Cannot save a loaded image -- Access denied Error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

HI
I have a VB.NET application in which my Image (from a picturebox) is opened by the user in another application like MSPaint or Photoshop or whatever he chooses. The image does open there.But after making changes, the user cannot save the image since it throws an error : "Access denied.File is in use by another process". What could be the workaround for this? Any little help would be highly appreciated since this is very urgent. Thanks everybody in advance.
 
It seems like both your app and the editing app are holding references to
the file. In order to overwrite it, you'll have to close one of them
(probably your app's reference).

SonyMan said:
HI,
I have a VB.NET application in which my Image (from a picturebox) is
opened by the user in another application like MSPaint or Photoshop or
whatever he chooses. The image does open there.But after making changes, the
user cannot save the image since it throws an error : "Access denied.File is
in use by another process". What could be the workaround for this? Any
little help would be highly appreciated since this is very urgent. Thanks
everybody in advance.
 
Back
Top