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

Creating a command bar on an Inspector



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old June 13th 07, 04:16 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Creating a command bar on an Inspector

NewInspector provides a weak object reference and should not be used for
creating UI. Wait for the first Activate event. In fact in Outlook 2007 this
is even more important than in earlier versions.

Always add any UI with the Temporary argument set to true. When you get the
Inspector.Close (or Item.Close since one or the other may not fire depending
on how the item is closed) also delete your UI.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"bstrum" wrote in message
...
I am trying to create a command bar in the NewInspector event. The code
seems to be working fine on Office 2003 and 2007 but throws an exception
in
Office XP when I access the CommandBars.Add function. Any ideas why?

Other things I am noticing are
- CommandBar.FindControl always seems to return null.

- Under office xp, adding controls to an already existing command bar
(such
as Standard) persists even when restarting outlook. This is not the case
under 2003 and 2007 as the buttons need to be recreated each time. Any
workarounds for this?

Thank you,

Benjamin Strum
ThinkTron Corp.


 




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
Creating a menu or command button in Outlook salad Outlook and VBA 6 April 9th 07 04:26 AM
inspector.ShowFormPage Steffen Heinzl Add-ins for Outlook 1 November 16th 06 08:34 PM
how to find out, that inspector window contain command bar or not Ram Add-ins for Outlook 1 May 30th 06 03:17 PM
Inspector outdated DanielH Outlook and VBA 4 May 4th 06 07:53 PM
Help! Inspector.Close is fired before Inspector.Activate handler finishes Sergey Anchipolevsky Add-ins for Outlook 8 February 9th 06 10:51 AM


All times are GMT +1. The time now is 10:28 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.