hai expert.........
I am using a PictureBox Control in Windows Application. while loading the image into the picture box control i am saving the image into a folder with a particular name, later i am saving another image with the same name using picturebox.image.save method. then it is giving error saying that the file is being used by other processes.
plaese give me a solution..........
thanks in advance........
Loading
Soumya SurendranPosted Oct 29, 2010, 5:09 AM
i have solved the problem by using
pictureBox1.Image.Dispose();
Sam HobbsPosted Oct 28, 2010, 4:43 PM
Soumya SurendranPosted Oct 28, 2010, 5:14 AM
while i am trying to delete the same msg "File is being used by other process" occures...plaese give me the code for that....
Gomathi PalaniswamyPosted Oct 28, 2010, 3:59 AM
have to delete the image first and save the new one
you have the answer in below link
http://stackoverflow.com/questions/1036115/c-gdi-overwriting-an-image-using-save-method-of-bitmap