locked
Outlook addin button shows multiple times in 2007 RRS feed

  • Question

  • Hi,

    I created com add in for outlook in vs2008.The add in shows two buttons in new mail window when clicking new mail.

    Its working in winx+office2003 but in winxp + office 2007 ,first time it shows two buttons when clicking new mail .Again if I Click new mail it shows four buttons.Every time it increments.Old buttons not cleared.

    Can you help what was the problem ?

    IS it possible to create one solution for both 2003 and 2007 office ?

    Thanks

    Monday, December 12, 2011 10:08 AM

Answers

  • I assume theses are CommandBarButton objects? That's typical when the programmer doesn't:
     
    a) Use a unique Tag property for each button that's created.
     
    b) Create the button object setting the Temporary property to true, and delete the button when the Inspector or Explorer closes.

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "KarthikNpm" <=?utf-8?B?S2FydGhpa05wbQ==?=> wrote in message news:cb360f0a-c3b0-43ff-b96a-c8dc27cc402c...

    Hi,

    I created com add in for outlook in vs2008.The add in shows two buttons in new mail window when clicking new mail.

    Its working in winx+office2003 but in winxp + office 2007 ,first time it shows two buttons when clicking new mail .Again if I Click new mail it shows four buttons.Every time it increments.Old buttons not cleared.

    Can you help what was the problem ?

    IS it possible to create one solution for both 2003 and 2007 office ?

    Thanks


    Ken Slovak MVP - Outlook
    • Marked as answer by 许阳(无锡) Monday, December 26, 2011 12:54 PM
    Monday, December 12, 2011 3:00 PM