Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

How do I set icon to temporary toolbar buttons ?

$
0
0

Hi,

I am adding toolbar buttons through my VS Package's Initialize() method this way

var button = (CommandBarButton) toolbar.Controls.Add(MsoControlType.msoControlButton, //Type Type.Missing, // Id Type.Missing, // Parameter Type.Missing, // Before true // Temporary

);


I have some icons as embedded resource that I can fetch as BitmapImage or ImageSource typed objects. How do I assign it to the button I added above ?


Fahad


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>