Addinga button to Appointment Form Toolbar

J

JRomeo

Hi:

I'd like to add a button to the Standard tool bar of the Outlook Appointment
form, but I don't know how to access it by name in my code. For example, I
can set up a CommandBar object as follows...


------
CommandBars oCommandBars;
CommandBar oStandardBar;

object oActiveExplorer;
oActiveExplorer = applicationObject.GetType().InvokeMember("ActiveExplorer",
BindingFlags.GetProperty, null, applicationObject, null);
oCommandBars =
(CommandBars)oActiveExplorer.GetType().InvokeMember("CommandBars",
BindingFlags.GetProperty, null, oActiveExplorer, null);


oStandardBar = oCommandBars["Standard"];
------------

However, this references the standard tool bar of Outlook; I'm only looking
for the standard toolbar of the Appointment form only. Can you help?

Thanks,

Jerry
 
S

SvenC

Hi JRomeo,
I'd like to add a button to the Standard tool bar of the Outlook
Appointment form, but I don't know how to access it by name in my
code. For example, I can set up a CommandBar object as follows...

An Appointment is an inspector object so instead of using
ActiveExplorer use ActiveInspector. It also has a CommandBars
collection
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top