Saturday, 7 April 2012

Error Message:An item with the same key has already been added in Windows Application


Changing the Background Image:

        When we trying to change the background Image of a control (forms,tabcontrol,groupbox,etc.,) in Windows Form an error message will be appear like,

Error message: An item with the same key has already been added

The Solution is-If you have two Resource.resx file in solution explorer, delete one of  the Resource.resx file  from them.

Examples:

Delete this Resource.resx file



Don’t Delete this one.


No comments:

Post a Comment