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

Setting Picture on a CommandBarButton doesn't work in 2015 RC

$
0
0

Hello,

In our VSPackage we are creating CommandBarButtons programatically. We do assign Picture of those buttons in this way:

CommandBarButton.Picture = AxHostConverter.GetIPictureFromPicture(image) as stdole.StdPicture

where image is System.Drawing.Image and AxHostConverter is subclass of AXHost.

This is working fine in VS 2010 / 2012 / 2013 but in VS 2015 the created button do not have icons.

While debugging this issue we see that Picture field in CommandBarButton is assigned.

Is assigning CommandBarButton.Picture supported in VS 2015 or is this dropped? Or is this a bug.

Thank you

Maciek


Viewing all articles
Browse latest Browse all 4410

Trending Articles