ListChanged event in PocketOutlook

  • Thread starter Thread starter John Socha-Leialoha
  • Start date Start date
J

John Socha-Leialoha

Has anyone been able to receive an event when you've registered to
receive events from ListChanged?

Here is the code I'm using (I'm using VS 2005 RC1 with CF 1.0):

OutlookSession outlook = new OutlookSession();
outlook.Appointments.Items.ListChanged += new
ListChangedEventHandler(Items_ListChanged);

This code runs just fine, but changing the calendar doesn't fire this
event in my application. I've searched the net, but haven't found anyone
who appears to have used it.

Thanks,
John
 
I haven't checked, but it's possible that the events in
Microsoft.WindowsMobile.PocketOutlook only fire when the changes are made
through these APIs not when changed from another application...

Peter
 
Here's what the docs say:

"Occurs when either the collection changes, or when an individual PIM
item in the collection changes."

Additionally, the MSDN article "What's New for Developers in Windows
Mobile 5.0" says that you can track changes made to Pocket Outlook
folders using managed code and gives an example, so it sounds like it
should show changes made by other applications. As far as I can tell,
that's the whole idea, in fact.

But I can't get it to trigger any events.

-- John
 
Back
Top