A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Adding a custom picture to command bar button



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 17th 08, 02:58 PM posted to microsoft.public.outlook.program_addins
Andrew
external usenet poster
 
Posts: 95
Default Adding a custom picture to command bar button

Anyone has any idea on how to a add a custom picture/icon to a command bar
button?

Thanks,
Andrew
Ads
  #2  
Old October 17th 08, 03:02 PM posted to microsoft.public.outlook.program_addins
Andrew
external usenet poster
 
Posts: 95
Default Adding a custom picture to command bar button

This is in Visual Studio 2005 SE/2008, language is VB

"Andrew" wrote:

Anyone has any idea on how to a add a custom picture/icon to a command bar
button?

Thanks,
Andrew

  #3  
Old October 17th 08, 04:57 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Adding a custom picture to command bar button

Outlook version?

If 2003 or 2002 you can use the Picture and Mask properties of the
CommandBarButton object and pass IPictureDisp objects, except in cases of
WordMail, where you can't pass an IPictureDisp across process boundaries.

If 2000 or for WordMail you must use PasteFace, which pastes an image that
meets the button image specs that's on the Clipboard. You must put the image
you want on the Clipboard yourself before calling PasteFace.

For 2007 you only want to use the CommandBar interfaces with Explorer
buttons, where you can use Picture and Mask with IPictureDisp images.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Andrew" wrote in message
...
This is in Visual Studio 2005 SE/2008, language is VB

"Andrew" wrote:

Anyone has any idea on how to a add a custom picture/icon to a command
bar
button?

Thanks,
Andrew


  #4  
Old October 17th 08, 06:14 PM posted to microsoft.public.outlook.program_addins
Andrew
external usenet poster
 
Posts: 95
Default Adding a custom picture to command bar button

Thanks, I'm going to try it out and see how it works.

"Ken Slovak - [MVP - Outlook]" wrote:

Outlook version?

If 2003 or 2002 you can use the Picture and Mask properties of the
CommandBarButton object and pass IPictureDisp objects, except in cases of
WordMail, where you can't pass an IPictureDisp across process boundaries.

If 2000 or for WordMail you must use PasteFace, which pastes an image that
meets the button image specs that's on the Clipboard. You must put the image
you want on the Clipboard yourself before calling PasteFace.

For 2007 you only want to use the CommandBar interfaces with Explorer
buttons, where you can use Picture and Mask with IPictureDisp images.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Andrew" wrote in message
...
This is in Visual Studio 2005 SE/2008, language is VB

"Andrew" wrote:

Anyone has any idea on how to a add a custom picture/icon to a command
bar
button?

Thanks,
Andrew



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
adding button like encryption and signing information button Ramazan Add-ins for Outlook 2 October 7th 08 01:57 PM
Command Button [email protected] Outlook - Using Forms 12 January 18th 08 05:57 PM
Command Button Daniel Vargas Outlook - Using Forms 1 May 23rd 07 09:35 PM
Setting A Command Bar Button Picture - Catastrophic Failure Error pswfps Outlook and VBA 1 July 14th 06 02:45 PM
Setting A Command Bar Button Picture - Catastrophic Failure Error Whatever Add-ins for Outlook 1 July 14th 06 02:42 PM


All times are GMT +1. The time now is 09:06 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.