Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Getting my icon in the Add-Ins menu

Posted on 2002-06-20
9
Medium Priority
?
138 Views
Last Modified: 2010-05-02
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?
0
Comment
Question by:schworak
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7097277
0
 
LVL 3

Author Comment

by:schworak
ID: 7097480
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
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7097657
I miss the point! I have never seen such a thing!
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 3

Author Comment

by:schworak
ID: 7098564
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
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7098586
I have never seen such code to do this.
0
 
LVL 3

Author Comment

by:schworak
ID: 7099394
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
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7099495
Ask the community support to refund your points and move the question to PAQ. Others will surely use it later!
0
 

Accepted Solution

by:
ComTech earned 0 total points
ID: 7099770
As per request and confirmed, this question will now be placed in PAQ, and points refunded.

Regards,
ComTech
CS Admin @ EE
0
 

Expert Comment

by:mhdhallak
ID: 8093835
thanks man i wanted to do the same thing and i found that link very helpful
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question