Toolbar button on all mail items in Outlook 2003 using VSTO

I'm new to VSTO and Outlook programming. I'm having difficulty creating a toolbar button that will appear on all mail items (both new mail and received mail.)

When I use the code in the Outlook programming labs for VSTO, it seems like the button only appears on the first window I open, and not on any other window.

Does anyone have a quick snippet of code that can show me how to do this

Thanks,

Ike



Answer this question

Toolbar button on all mail items in Outlook 2003 using VSTO

  • Durgaprasad Gorti

    Hello John,

     

    yes you are right, my provider :-(  is currently upgrading my webserver.

    send me a mail to flash [at] x4u dot de and i will mail you back this sample.

    Greets, Helmut

     



  • Fatcat2315

    Helmut,

    It looks like your sample is exactly what I'm looking for, but your site appears to be down.

    Thanks,

    John Wrate


  • Byteproducer

    Hi Helmut,

    I used your exact code in the X4UTools and with a few modifications, it works great. It seems a little strange that you have to create classes that derive from the inspector and explorer classes to get something so simple to work, but I'll take what I can get. The MS Word email editor code worked well, also.

    Also, thanks for the great example on how to create an options pane. I appreciate that.

    Yours,

    Ike


  • PikachuSalad

    Hello Ike,

    well when programming Outlook there are some pitfalls.
    Maybe you can look on my VSTO Sample "X4UTools" that deals with multiple Explorers and Inspectors and also when you use Word as Emaileditor.

    http://www.x4u.de/LinkClick.aspx link=X4UTools.zip&tabid=77&mid=393

    There is also a good startingpoint for Outlook-programming issues on Sue Moshers site here: www.outlookcode.com

    There is a .Net discussion forum and some VSTO Samples that maybe helping you getting started with VSTO and Outlook issues.

    Hope this helps,

    greets, Helmut



  • skipster32

    Hello Ike,

    thank you for the flowers, it lsmells good.
    The strange thing: yes for this sample this is oversized, but it's like a framework. When you create a bigger solution this could be very helpful to derive those classes form a general class and change only the code that is different. e.g. a Company and a Customer are both Contacts and vary by MessageClass and a few properties and have different behavior.

    Maybe you could use this in the future.

    Greets, Helmut



  • Toolbar button on all mail items in Outlook 2003 using VSTO