Reputation: 2201
I have imported images through the visual studio designer to the projects resource file. Some of these images are no longer used and I want to remove them.
However, I've tried to remove the resource images before by deleting the image file through the solution explorer and then removing the corresponding <data>
element from the .resx file. However, this causes the VS designer to have a panic attack and start throwing exceptions saying it can't find the files I've just removed even though they are not referenced anywhere.
What is the a proper way of deleting images from the resource file?
Upvotes: 18
Views: 38301
Reputation: 11
Click on the Image or BackgroundImage property to show the Select Resource dialog for the control. Select the image from the list. Select the Clear button under Local Resource. Select Okay to close the dialog.
Upvotes: 1
Reputation: 17454
This is a quick visual guide on removing the imported resources to Resources.resx.
Upvotes: 25