You can set the PR_ICON_INDEX MAPI propety to one of the bult-in Outlook
icons (you can play with that property usisng MFCMAPI or OutlookSpy).
If you want your own icon, you need to publish your own form with a custom
icon for a custom message class, then change the item's message class to
that handled by a form.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"DG" wrote in message
...
Is it possible to change the icon used for an opened MailItem? I have a
criteria that I would like to classify e-mails using a custom Outlook
field.
I would like to change the icon based on this classification. Is this at
all
possible in Outlook 2003 sp2?
The only folder I truley care about showing this icon would be the Sent
folder, if it matters.
I would like to use VSTO with VS 2005.
Thank you,
DG