Control image property locking image file even after image cleared

S

steve

Hi All

When I set a buttons image to a image file in the properties window it seems
to lock the file even if I clear the button image property in the properties
window

Sometimes I am editing the icon/bitmap and connect it to the button to see
what it looks like

Then I want to make further changes so I clear the image from the buttons
image property, but when I edit and try to save the image file I get a
message saying it is in use by another program

I have to close the VB.net 2005 solution to free it up


Any ideas

Regards
Steve
 
W

William LaMartin

If you could use a filestream to load the file, then I don't think you would
have this problem. I have done this for pictureboxes.
 
J

Jeffrey Tan[MSFT]

Hi Steve,

Thanks for your post!

Yes, I can reproduce out this issue in VS2005. After performing some
research, I found that this is a known issue which has been reported by
other customers in feedback center. Please refer to the link below for more
information:
"Images imported into VS2005 place a hard Lock on the original file"
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?Feedbac
kID=122203

Thanks for your reporting this issue. We can hope this issue to be fixed in
next version of VS IDE.

Based on your post, it seems that you want to edit the images on the disk
and use the VS2005 designer to view the editing result, yes? If this is
what you want, I recommend you use some professional image processing tool
to edit it, such as "Paint" tool followed with Windows. Also, you have the
choice of adding the image to the VS2005 as a normal file and then use
"Resource Editor" to edit this image. Based on my test, by doing this,
VS2005 resource editor will not lock the original file. I hope these
workarounds meet your need.

Thanks for your understanding.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

Jeffrey Tan[MSFT]

Ok, if you need further help, please feel free to post. Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top