473,383 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Advanced Question: How do I set the icon on an Office Add-in?

I have been tasked to write a toolbar add-in button for a project at work.

I have built the button, and everything works great ... EXCEPT.

I cannot for the life of me figure out how to set the icon next to the
caption on the button.

I'm using:

MyButton = oStandardBar.Controls.Item("NNPoC")
If MyButton Is Nothing Then
MyButton = oStandardBar.Controls.Add(1)
With MyButton
.Caption = "PoC Add-In"
.Style = MsoButtonStyle.msoButtonCaption <--------------
......

But would rather use:

.Style = MsoButtonStyle.msoButtonIconAndCaption
Both of these work except the second has no obvious way to set the icon and
I can find no documentation on it.

I would also MUCH rather embed the icon into the binary than have it sitting
out somewhere...if that's possible.

--Tony
Nov 20 '05 #1
0 955

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Starbuck | last post by:
Hi The code below saves data from my edit screen, it shows no errors and seems to run but nothing is written back to the table, Can anyone spot my mistake Thanks private void updateRec()
3
by: Stanley | last post by:
I wish to set Form.Icon from an image list but seems like the image list didn't provide a method to extract the image as an Icon type. Thus, can anyone show me a way the conversion From:...
1
by: hamil | last post by:
Is there a simple way to add my own icon to my vb exe file? I would think that there would be some way to add the icon file (MyIcon.ico) to the project and have it included. I can add the icon to a...
0
by: DanLezoche | last post by:
I am working on a customer's database. They have an OLE Object field that they are using to store .pdf's. When they double click the pdf inside the field (on any record) the pdf will open and...
0
by: Rick | last post by:
I am trying to creat an notification icon that will bring my form to the foreground. Why does this code not work Private Sub frmExample_Load(ByVal sender As System.Object, ByVal e As...
1
by: Rick | last post by:
I am trying to creat an notification icon that will bring my form to the foreground. Why does this code not work Private Sub frmExample_Load(ByVal sender As System.Object, ByVal e As...
2
by: flaper87 | last post by:
Hi everybody!!!! I am developing an aplication, and i want it to stay on the system tray, i found out how to put the icon, but i can minimize it there, What do i have to do?, I'm using python(of...
1
by: =?Utf-8?B?QWRhbQ==?= | last post by:
I'm having a problem loading an Icon into an ImageList. When I load the icon directly it works fine, like this: Icon sourceIcon = << Get an icon from somewhere... >>;...
5
by: wajedali | last post by:
Hi I am having trouble rendering a combo box with icon near the text. Below is a simple code which demonstrates my problem. import java.awt.Component; import java.util.HashMap; import...
4
by: Marcolino | last post by:
Hi, I have simple needs but I don't know how to implement it. I have application that create Dynamic Button. I need to set the image on this button, getting the icon from a form. So pratically...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.