1) This might do it: In NewInspector or Inspector_Activate the Taskitem's
Subject is like the one in Selection(1).
2) It seems that Sue told you the 'workaround' already: you must determine
the Outlook version, dependign on that either open the right registry key
and write into it either text or hex values, or if it's OL07 use the new
object model.
--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - Categorize Outlook data:
http://www.vboffice.net/product.html...&lang=en&pub=6
Am 17 Apr 2007 01:05:17 -0700 schrieb Mohit:
> Hi all,
> I have explorer window opened. Now I select any mail and drag and
> drop it onto the Task Button available on the Navigation pane. A new
> task is created and the description of the task is filled up with my
> email message body.
> Now my questions are:-
> How can I differentiate between tasks that are created normally
> and those tasks which are created in this drag drop fashion. I require
> this so as to perform some activities like setting the category of
> tasks created from email messages etc. Is there some specific event
> and/or property which can help me in distinguishing?
> Currently I am trapping the NewInspector event but that is executed
> each time even when I open a task from task list. So in this case my
> activities are executing every time that I don't want.
>
> Another question is :
> I have searched on creating categories programmatically. I didn't
> get any specific answer whether we can do it or not? I get that master
> categories are stored as UNICODE/ANSI registeries for different
> versions of outlook in one of the posts by Sue.
> When I set category as : taskItem.Categories="MyCategory". Category is
> added temporarily but not added in Master Category list and it is also
> not available to other tasks. Is there some workaround for it?
>
> Thanks in advance.