ListChanged event in PocketOutlook

  • Thread starter John Socha-Leialoha
  • 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
 
P

Peter Foot [MVP]

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
 
J

John Socha-Leialoha

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top