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