I've tried using the windowsmobile.pocketoutlook to create an task, in a foreach statment, and i give up.
method that I use:
public void AddTask(string subject, DateTime startDate)
{
InTheHand.WindowsMobile.PocketOutlook.OutlookSession o = Outlook;
ith.TaskCollection tc = o.Tasks.Items;
ith.Task t = tc.AddNew();
tc.Add(t);
t.Properties.Add("wfm");
t.AddCategory("mgr");
t.Subject = subject;
t.StartDate = startDate;
t.Body = "task created";
t.Update();
}
or
public void AddTask(string subject, DateTime startDate)
{
InTheHand.WindowsMobile.PocketOutlook.OutlookSession o = Outlook;
ith.TaskCollection tc = o.Tasks.Items;
ith.Task t = tc.AddNew();
t.Properties.Add("wfm");
t.AddCategory("mgr");
t.Subject = subject;
t.StartDate = startDate;
t.Body = "task created";
t.Update();
}
ones work another not
it's a lottery :)
Can someone please post a C# or VB.NET code snippet that shows how to do it?
Thanks!
PK