Getting my icon in the Add-Ins menu

I have created an add-in for VB. When it loads I want a cool icon like most of the other add-ins have in the Add-Ins menu...

So, how do I do it?
LVL 3
schworakAsked:
Who is Participating?
 
ComTechConnect With a Mentor Commented:
As per request and confirmed, this question will now be placed in PAQ, and points refunded.

Regards,
ComTech
CS Admin @ EE
0
 
Éric MoreauSenior .Net ConsultantCommented:
0
 
schworakAuthor Commented:
Either that doesn't relate, or I am missing the connection. That link seems to be a control that helps me get icons in to menues of my app.

I am trying to get an icon on to the menu of the VB editor in the Add-Ins menu.

Am I missing it?
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Éric MoreauSenior .Net ConsultantCommented:
I miss the point! I have never seen such a thing!
0
 
schworakAuthor Commented:
You have never seen such code to do this? Or you have never seen the icons in the menu?

I have been having trouble finding the code myself. But since every other add in has icon's in the menu it must be posible.
0
 
Éric MoreauSenior .Net ConsultantCommented:
I have never seen such code to do this.
0
 
schworakAuthor Commented:
I FOUND IT!


It was so simple I want to smack myself...


In the AddToAddInCommandBar routine (created when you start an AddIn project) you simply add the following code after setting the menu item's caption...


Clipboard.SetData LoadResPicture(1000,0)
cbMenuCommandBar.PasteFace


Of course, LoadResPicture can be any routine that gets your icon image. Note, PASTEFACE only works with bitmaps not ICONs. You need it in the clipboard then you use the PasteFace command to stick it to the menu. Oh so simple!


For a great article that includes the code above see...
http://www.devx.com/premier/mgznarch/vbpj/1997/10oct97/cb1097.pdf

It is written for VB5 but works 100% on VB6 too.



0
 
Éric MoreauSenior .Net ConsultantCommented:
Ask the community support to refund your points and move the question to PAQ. Others will surely use it later!
0
 
mhdhallakCommented:
thanks man i wanted to do the same thing and i found that link very helpful
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.