none
Change icon for read, forward,reply, replyall in outlook 2007 using addins

    Question

  •  

    Hi,

    I am able change the icon for incoming mail.

    I need to change the icon for read, forward, reply and replay all.

    please give some code or help regarding this.

     

    Thank you

    Ajay kumar R

    Wednesday, August 20, 2008 5:44 AM

Answers

  • Hi ,

     I think you could achieve this under Visual Studio 2005 by using the VSTO 2005 SE,here is a Walkthrough for you:

    http://msdn.microsoft.com/en-us/library/aa942741.aspx

    the mainly difference is you just need to write the manifest file by yourself.

    Thanks

     

    Friday, August 22, 2008 3:55 AM
  • I'm not sure what you're asking. We've already covered most of the options. To summarize:

    1) Outlook 2003 supports a single custom icon, only for items using a published custom form.

    2) Outlook 2007 offers the same custom icon support for published custom forms as Outlook 2003. It also adds -- through the new form regions feature -- custom icons for reply, forward, read, unread, and more. See http://msdn.microsoft.com/en-us/library/bb177034.aspx.

    There is a third approach -- updating the PR_ICON_INDEX MAPI property. Because CDO 1.21 and Extended MAPI are not supported in managed code, you should use Outlook Redemption to work with this property. See:
    http://groups.google.com/group/microsoft.public.win32.programmer.messaging/browse_thread/thread/e019eb2089ed55b4/85863477e7891a89
    http://groups.google.com/group/microsoft.public.outlook.program_vba/browse_thread/thread/44b23c3a3bab1b9c/2a212546f3b34bc1

    Tuesday, August 26, 2008 1:43 PM
    Moderator

All replies

  • Hi ,

    To customize the Icons we could take advantages of Form Region. But this is only available for coustom message class.

    Here are the main steps of create Form Region in Visual Studio 2008.

     

    First ,Right-Click your Outlook Add-In project at Solution Explorer.

     

    select Add-New Item ,select Outlook Form Region.

     

    Next at the Wizard ,we select Design a new Form Region.

     

    At the question: Which type of Form Region you would like to create? we select  Adjoining.

    Then,select IPM.Note.

     

    After finish above steps ,you'll find two new items in your Solution Explorer.

     

    Then,Open the Form Region designer.

     

    Right-click the panel(Notice,don't add any controls in it),select Property.

     

    At the Property window,select manifest ,find FormRegionType.set it to Replace-all.

     

    Then,find the Icon node,you could sepcify your own Icons there.

     

    Here are the links.

    http://msdn.microsoft.com/en-us/library/bb177034.aspx

    http://msdn.microsoft.com/en-us/library/bb851471.aspx

    Thanks

     

    Thursday, August 21, 2008 6:07 AM
  • hi,

    Thanks for u r reply tim.

    i am using vs2005 and outlook 2007 and same thing has to done for outlook 2003.

    How this can be done in the outlook 2007 with vs2005.

     

    Please give me some code.

     

    thank you

    Ajay Kumar R

     

    Friday, August 22, 2008 3:43 AM
  • Hi ,

     I think you could achieve this under Visual Studio 2005 by using the VSTO 2005 SE,here is a Walkthrough for you:

    http://msdn.microsoft.com/en-us/library/aa942741.aspx

    the mainly difference is you just need to write the manifest file by yourself.

    Thanks

     

    Friday, August 22, 2008 3:55 AM
  • What you want to do is possible only in Outlook 2007. Outlook 2003 has no support for custom reply and forward icons.

    Monday, August 25, 2008 3:31 PM
    Moderator
  • Hi,

     

    Thanks for reply.

    please, can u provide me some code or process how to change icon in outlook 2003 for read and unread.

     

    Thank you,

    Ajay kumar R

     

    Tuesday, August 26, 2008 5:46 AM
  • Same issue: Custom read and unread icons are supported only in Outlook 2007, using form regions.
    Tuesday, August 26, 2008 12:44 PM
    Moderator
  • hi,

     

    other then this if i want to keep the custom icon in outlook 2003.

    how can i do it.

     

    Tuesday, August 26, 2008 12:53 PM
  • I'm not sure what you're asking. We've already covered most of the options. To summarize:

    1) Outlook 2003 supports a single custom icon, only for items using a published custom form.

    2) Outlook 2007 offers the same custom icon support for published custom forms as Outlook 2003. It also adds -- through the new form regions feature -- custom icons for reply, forward, read, unread, and more. See http://msdn.microsoft.com/en-us/library/bb177034.aspx.

    There is a third approach -- updating the PR_ICON_INDEX MAPI property. Because CDO 1.21 and Extended MAPI are not supported in managed code, you should use Outlook Redemption to work with this property. See:
    http://groups.google.com/group/microsoft.public.win32.programmer.messaging/browse_thread/thread/e019eb2089ed55b4/85863477e7891a89
    http://groups.google.com/group/microsoft.public.outlook.program_vba/browse_thread/thread/44b23c3a3bab1b9c/2a212546f3b34bc1

    Tuesday, August 26, 2008 1:43 PM
    Moderator