Re: Save picturebox.image
Welcome to the Forums.
That sounds like its being locked since its in use during runtime. If you set the property in the property grid at design time then it copies the image to its resources so no lock will be lace, I believe.
Save it as a different filename if you need to set it at runtime.. :)
Re: Save picturebox.image
I'm affraid that it is not a problem of the filename. It is obviously the kind problem which can be caused by anything :rolleyes: ...
Re: Save picturebox.image
You didnt get it, th name your specifing is the same as the image file dynamically linked to the picturebox at runtime. This will retain a lock on the file that will not allow you to overwrite the file since its in use.
Re: Save picturebox.image
Well, I am a newbie, but not that much :D ....Of course I load the file and save it in different destinations. Is that problem too?
I just wanted to know if this is some kind of standart problem or it is something "special".
Thanks for help
Re: Save picturebox.image
Its a standard issue because the file will always be in use when assigned dynamically at run time.
A workaround would be to use a temp copy of the file and when you need to save there should be no problem saving to the real name and location. Then make a new temp copy and reassign the image.