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 » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Adding a button in a mailitem



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 15th 09, 12:30 PM posted to microsoft.public.outlook.program_vba
PatrickS
external usenet poster
 
Posts: 4
Default Adding a button in a mailitem

Sorry if this is the wrong place for this, but there was no apparent group
for Outlook COM addins.

I've managed to add a button to the main window in Outlook, but I would like
to be able to do the same within a mailitem. The problem is I have no idea
how to do this, and so far searching the 'net has not revealed anything
useful. Any help in this area would be appreciated. I'm using VB6 for the
addin in case this has any impact on how to do this.
Ads
  #2  
Old June 15th 09, 03:38 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Adding a button in a mailitem

The "main window" is an Explorer. Open items use Inspectors, you would add
your UI to that Inspector just as you would to an Explorer.

The Inspectors.NewInspector() event will tell you when a new item is opened.
Testing the passed Inspector object in that event handler for
Inspector.CurrentItem.Class will tell you what type of Inspector is being
opened.

One thing to bear in mind is that if this is for Outlook 2007 then a
CommandBarButton for an Inspector will be relegated to the Add-Ins tab along
with any other old style UI. For Outlook 2007 you should be handling the
ribbon to provide UI.

--
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


"PatrickS" msdn_newsgroups001@_removetextplusunderscores_seu rre.com. wrote
in message ...
Sorry if this is the wrong place for this, but there was no apparent group
for Outlook COM addins.

I've managed to add a button to the main window in Outlook, but I would
like
to be able to do the same within a mailitem. The problem is I have no idea
how to do this, and so far searching the 'net has not revealed anything
useful. Any help in this area would be appreciated. I'm using VB6 for the
addin in case this has any impact on how to do this.


 




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 a button to existing ribbon Tom[_4_] Add-ins for Outlook 6 April 4th 10 02:44 PM
adding a custom send button? kingsob Outlook and VBA 1 March 27th 09 01:09 AM
adding button like encryption and signing information button Ramazan Add-ins for Outlook 2 October 7th 08 02:57 PM
Adding a button to the Appointment Form [email protected] Add-ins for Outlook 6 March 21st 06 03:09 PM
Adding a 2nd button (functionality not working) Newt Outlook and VBA 3 March 6th 06 06:35 PM


All times are GMT +1. The time now is 08:45 PM.


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.