Search and replace for icons

Anyone tried a search and replace for icons assigned to controls? I tried it and it removed the icons from the controls but did not replace them with the icon I wanted to replace it with. Both the old and new icons are in the project.

i assign icon using code on my own subclassed control like bevelbutton based on the icon name