What version of VSTO, what language?
If this is VSTO 2005 SE you can download sample templates for Outlook addins
at http://www.slovaktech.com/outlook_2007_templates.htm or from the Office
section at MSDN.

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> Hi,
> I want to add Add-In(say e.g. Button) on Appoinment for of the Calendar of
[quoted text clipped - 6 lines]
> Thanx in advance,
> Yagnesh
Yagnesh Patel - 25 Mar 2008 05:26 GMT
Hi Ken,
Thanx for the quick reply.
I am using VSTO 2005 SE and C# on Vista.
Regards,
Yagnesh
> What version of VSTO, what language?
>
[quoted text clipped - 12 lines]
> > Thanx in advance,
> > Yagnesh
Yagnesh Patel - 25 Mar 2008 13:41 GMT
Hi Ken,
I am adding menu bar and button in Outlook 2007 using VSTO and C#.
I am using below code for it.
menuBar = this.Application.ActiveExplorer().CommandBars.ActiveMenuBar;
newMenuBar = (Office.CommandBarPopup)menuBar.Controls.Add(
Office.MsoControlType.msoControlPopup, missing,
missing, missing, false);
Above is giving me the Coomand bars of Active explorer in which if menu bar
is not added then program will add it.
But, in above case menu bar is added for active explorer and I want to add
menu bar only on Appointment form of the calendar.
Do we have any specific class to access that?
Thanx,
Yagnesh.
> What version of VSTO, what language?
>
[quoted text clipped - 12 lines]
> > Thanx in advance,
> > Yagnesh
Ken Slovak - [MVP - Outlook] - 25 Mar 2008 14:53 GMT
Do you want your UI only in open Appointment items? For Outlook 2007 you
would want to use the ribbon then instead of the CommandBars collection. The
templates I have do have ribbon code in the InterfaceHandler class.
My template only handles new mail items, for appointments you would use:
case "Microsoft.Outlook.Appointment"
to provide the ribbon XML in the GetCustomUI(string ribbonID) callback.
If you want your UI in an Explorer (folder view) but only in Calendar
folders then you would test for (Explorer.CurrentFolder.DefaultItemType ==
Outlook.olItemType.olAppointmentItem) before creating the CommandBars UI for
Explorers.

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> Hi Ken,
> I am adding menu bar and button in Outlook 2007 using VSTO and C#.
[quoted text clipped - 16 lines]
> Thanx,
> Yagnesh.