An item with the same key has already been added.

Chase

Member
Joined
May 11, 2007
Messages
7
Programming Experience
1-3
Hi everyone,

I chose an ArrowImage for my button and added it to my Resources folder. But then I decided I did not want that ArrowImage so I DELETED the ArrowImage and the "Resources" folder from the project. Then when I tried rebuilding the project it gave me an error on the Resources.resx file. So I deleted the <data> tag where the ArrowImage was declared. I rerun the project and it works fine now.

But when I try to "Select New File/Resource" whenever I'm about to choose an Image for my controls, it gives me this error:

"An item with the same key has already been added."

Please help, thank you.
 
Double click "My Project" in the solution explorer. In the project properties, select the "Resources" tab. You may need to change the view to images. You will most likely notice that the entry for the arrowimage has an exclamation icon beside it. Delete that entry and you should be able to add more images.
 
Back
Top