Clear a resource


I have a button on my form with the property Image set to closeImage.bmp.
But I want to make this undone so i can set the property again but then to closeImage.jpg.

I could delete the value of the property Image but then it still exists in the dialogscreen
And there is no button to delete this resource. Also I have noticed that a folder will
be automaticly created in the Solution Explorer with my image.

What is the proper way to erase the image that is set in the property Image.

Peter KiersOperatorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Navneet.Net Full Stack DeveloperCommented:
I guess you have to set the default NoImage .
So if there are no images set then there is default image. say for ex: X (cross image)

Naman GoelPrinciple Software engineerCommented:
This is all manual process:


Delete Image entry from button, Goto Image property of button and delete Image entry from there, or you can go directly to designer code and delete that image entry


Delete Image entry from resource file, you will find a global resource file under "<Project File Path>\Properties\Resources.resx, open that file in designer view and remove that entry


Delete Image file from project, goto solution explorer and remove that entry from there

for automating this you can user ReSharper from JetBrains.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Peter KiersOperatorAuthor Commented:
Thank you very much

Greetings, Peter Kiers
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.