View Single Post
  #4  
Old April 11th 08, 02:54 AM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Accessing User Input In Outlook Appointment Form

Outlook has two types of windows, Explorer for folder views and Inspector for individual items. You need to create your button on the Inspector window. The code sample at http://www.outlookcode.com/codedetail.aspx?id=1344 uses a wrapper class to handle buttons on multiple open mail (Outlook editor, not WordMail) and contact items. You should be able to adapt it to your scenario.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"JRomeo" wrote in message ...
Thanks Sue.

I'm new at this, and I just don't get it. I can't figure out how to add a
control to the Appointment form toolbar. I've successfully created a COM
add-in that adds a button to the Standard toolbar of Outlook. But I want to
create it for a form. Is there any code that specifically references the
Appointment form toolbar?

I'm sure this is such a simple thing to do, but I can't find the resources.
I have your book but it covers maniuplating the forms themselves. Any help
you may have would be great. Thanks again.



"Sue Mosher [MVP-Outlook]" wrote:

From the Outlook object model, Application.ActiveInspector.CurrentItem will return the currently open item.

"JRomeo" wrote in message ...
Hi:

I'm creating a COM add-in for Outlook 2003. How can I access the values of
the Start Time and End Time fields from an open Appointment form? Something
like Item.Start and Item.End I belive but not sure how to get the context of
the Appointment form. Please help. Thanks.

--
Tip: Never eat yellow snow.


Ads