473,395 Members | 1,639 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Control image property locking image file even after image cleared

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
Jun 28 '06 #1
4 1521
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.

"steve" <ga*****@newsgroups.nospam> wrote in message
news:eq**************@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

Jun 28 '06 #2
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/VisualS...k.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.

Jun 29 '06 #3
Hi Jeffrey

Thanks for the info

Consider the thread closed

Regards
Steve
""Jeffrey Tan[MSFT]"" <je***@online.microsoft.comwrote in message
news:vv**************@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/VisualS...k.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.

Jul 5 '06 #4
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.

Jul 6 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
5
by: Grant Harmeyer | last post by:
I have an application that uses FreeTextBox 2.0 (http://www.freetextbox.com). FreeTextBox is a rich text editor that behaves similarly to MS Word. The FreeTextBox control has a button to insert...
2
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is...
0
by: David | last post by:
Hello all. I am trying to implement my first server control and have run into two problems that I cannot solve. I need the assistance of someone with more experience. My goal was to create an...
2
by: mohit | last post by:
Hello, I am making a custom control which places some restrictions on the value of Text property of the control. While debugging i noticed that when the control is drag-dropped on a form during...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
0
by: ChopStickr | last post by:
I have a custom control that is embedded (using the object tag) in an html document. The control takes a path to a local client ini file. Reads the file. Executes the program specified in...
14
by: Steve K. | last post by:
I have a method that I use to get a System.Drawing.Image from a file without keeping a handle on the file open (so I can delete the file). Here is the code: <code> public static Image...
5
by: OldBirdman | last post by:
When Access saves a form with a linked image control, It saves the last-used image name in the Picture property. When I sync my 2 computers, if I have changed code, starting the program on the...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.