Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm working on a custom addin with C# + VS2010 + Arc10.1 Pre Release and I don't seem to find the way to make custom icons work for a button that the extension holds and for the extension itself. I pointed the Config.esriaddin appropiate attributes to the files which are both png with alpha transparencies (the icon is 16x16 and the extension img is 64x64). Is there any rule about creating images for icons I'm missing? Why would this not work? Thanks in advance.

share|improve this question
1  
What doesn't work and have you compared your project to some of the samples or a default/blank new project? –  blah238 Jun 22 '12 at 19:55
add comment

1 Answer 1

I have been struggling with this for a long while too. For example the standard blue dot icon for a button does show, but all my custom icons did not.

By default Visual Studio sets the build action for an image you add to the solution to 'Content'. Apparently this has to be set to 'AddInContent'. After I changed this, all my button images where visible.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.