Accessing User Input In Outlook Appointment Form

J

JRomeo

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

Sue Mosher [MVP-Outlook]

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

JRomeo

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

Sue Mosher [MVP-Outlook]

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 said:
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.
 

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