VSTO2005 Outlook

I have a VSTO2005 Outlook addin that creates a toolbar in Outlook at startup. The toolbar includes several buttons.

I now want to create and make visible a different toolbar when users open or create a task, e-mail or appointment.

Any help will be appreciated.

[265 byte] By [Ignus] at [2008-2-24]
# 1
Ignus,

In case your question has not yet been answered, here's the deal. CommandBars can be made visible and invisible. You simply need to set the Visible property to True or False depending on your conditions. Use the Explorer.FolderSwitch event to change your toolbar visibility.

HTH

John R. Durant [MSFT]
blog1 http://blogs.msdn.com/johnrdurant
blog2 http://spaces.msn.com/members/painjunkie

This posting is provided "AS IS" with no warranties, and confers no rights.

PainJunkie at 2007-9-8 > top of Msdn Tech,Visual Studio Tools for Office,Visual Studio Tools for Office...
# 2
Hello Ignus,

the CommandBars for Items are Inspectors CommandBars.
If you like see my VSTO sample that shows how to create CommandBars for Explorers and Inspectors.

Greets, Helmut

Sample:
http://www.x4u.de/Outlook/Samples/tabid/77/Default.aspx

HelmutObertanner at 2007-9-8 > top of Msdn Tech,Visual Studio Tools for Office,Visual Studio Tools for Office...
# 3
John
Thanks for helping me. So if I add a button to the Task commandbar while Outlook in initializing will it then show when the user do a new Task?

Thanks
Ignus

Ignus at 2007-9-8 > top of Msdn Tech,Visual Studio Tools for Office,Visual Studio Tools for Office...