AnsweredAssumed Answered

How to correctly load an icon for a button

Question asked by ddoucet20 on Sep 15, 2017
Latest reply on Sep 15, 2017 by ddoucet20

Hello, 

 

I'm following the community samples and am trying to change the icon for my add in button. Its not working however, even though I have two buttons (one 16x16, other 32x32 like in the samples). They are present in both Images and Dark Images folders too, incase that mattered. They just dont load.

 

The line in the DAML file

<button........ smallImage="Images\tree16.png" largeImage="Images\tree32.png">

 

 

However I also use the same images for a window icon elsewhere, and it works perfectly. I've even tried the EvilGenius16/32.png from the samples and still no luck. Meanwhile the GenericButton16/32 png's do work. I cannot find any reference to the Generic buttons anywhere in the entire project though, so I don't know if I'm missing a resource loading step or something.

Outcomes