Home All Groups Group Topic Archive Search About

Control image property locking image file even after image cleared

Author
28 Jun 2006 7:45 AM
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

Author
28 Jun 2006 1:22 PM
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.

Show quoteHide quote
"steve" <ga630sf@newsgroups.nospam> wrote in message
news:eqjxabomGHA.4868@TK2MSFTNGP04.phx.gbl...
> 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
>
Author
29 Jun 2006 3:00 AM
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.
Author
5 Jul 2006 7:00 AM
steve
Hi Jeffrey

Thanks for the info

Consider the thread closed

Regards
Steve
""Jeffrey Tan[MSFT]"" <je***@online.microsoft.com> wrote in message
Show quoteHide quote
news:vvP3rgymGHA.5664@TK2MSFTNGXA01.phx.gbl...
> 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.
>
Author
6 Jul 2006 1:57 AM
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.