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

How to add icon/image to context menu

$
0
0
I have created a simple add-in. It is activated when the user selects a project in solution explorer and right-clicks, it appears as a new menu item on the context menu, it has one sub-item.

When user selects that sub-item the add-in displays a modeless dialog for user to do stuff to the project, this all pretty much works.

However, the sub-menu item is currently onlt text, there is space on the left of it, for an icon/image.

How can I add an icon/image?

I have added a .png file as a resource to the add-in project, but can't see an Image or Icon property for the CommandBarControl class.

Any guidance much appreciated, this is designed/intended for Visual Studio 2008.

H

Viewing all articles
Browse latest Browse all 4410

Trending Articles



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