For my case,
I create one dummy dialog with image control and put the customized image
there
and the rest is the same as you add normal button but you copy into the
clipboard
from image in the dummy dialog and paste into the button you just created.
'-----------------------------------------------
' Button
'-----------------------------------------------
Set m_cbcConnectButton = .Add(msoControlButton)
With m_cbcConnectButton
.Style = msoButtonIcon
.Caption = CONNECT_BT_NAME
Clipboard.Clear
Clipboard.SetData AddinsButtons.ConnectPic.Image
.PasteFace
.ToolTipText = CONNECT_BT_NAME
.Tag = CONNECT_BT_NAME
End With
Shinya
----- Original Message -----
From: "Ulf Nilsson" <
[email protected]>
Newsgroups: microsoft.public.office.developer.com.add_ins
Sent: Monday, June 20, 2005 7:18 AM
Subject: Picture