Solved

VSTO - Appointment Item

Posted on 2014-03-20
1
508 Views
Last Modified: 2014-03-21
Hi All,

I have an VSTO add in that I'm working on.  Inside of my form, I'd like to have a button that does some fucntions, and then brings me back to the appointment page.

(EG: simulate the appointment click in the show ribbon).

I've found the document that says the control name is ShowAppointmentPage . . . but haven't found a way to access it yet.

If anyone knows how to do this with an inspector or by getting to it from the ribbon it would be very helpful.

Thanks in advance.
0
Comment
Question by:Kyle Abrahams
1 Comment
 
LVL 40

Accepted Solution

by:
Kyle Abrahams earned 0 total points
ID: 39945748
I found my own answer but leaving it here in case anyone else needs to come across:

Globals.ThisAddIn.Application.ActiveInspector().SetCurrentFormPage("Appointment");

In general you can add a PageChange event to your outlook inspector:
            Outlook.Inspector y = Globals.ThisAddIn.Application.ActiveInspector();
            y.PageChange += new Outlook.InspectorEvents_10_PageChangeEventHandler(y_PageChange);

and then set a break point on the line in this function:
        void y_PageChange(ref string ActivePageName)
        {
            string test = ActivePageName;
        }

test will now hold the pagename of what you just clicked, so you can go back to it using:
Globals.ThisAddIn.Application.ActiveInspector().SetCurrentFormPage(test);
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question