View Single Post
  #7  
Old September 28th 06, 03:42 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default ContactItem.Save()

I'd probably create a global collection to gather all my event handling
classes and keep them alive and then remove those collection members as they
aren't needed or you need to de-reference them. Then I'd create a new class
instance to handle the events and add it to the collection.

Say on start synch you get rid of the class. Then on end of synch you
instantiate a new instance. That would work.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Virda" wrote in message
...


"Virda" wrote:

Thanks a lot Ken Slovak

I think you are right but problem is if I disable all these events then
How can I get the event from Outlook in that case
whenever user add/edit/delete any Contact/Task/Calendar item.

Currectly I registered these calsses at ThisApplication_Startup.

To get the any change related to Outlook Contact/Task/Calendar.

Should I make the instances of these classes global and then reinitialize

all these classes after sync process??


Ads