Friday, December 28, 2012 5:01 AM
I am trying to write an Outlook (2010) add-in which needs to run a particular piece of C# code (or a method) at regular intervals (let's say every 1 hr).
Could some one please let me know how do I achieve this? I guess there should be something registered in 'ThisAddIn_Startup' method?
I tried looking at the various places but only seem to find illustrations of developing add-ins which trigger upon a particular action (creating a new email message, deleting an item etc..)
Friday, December 28, 2012 6:12 AMWhy not use a Timer object? Make sure you use the one from the Forms namespace as it fires on the main thread and does not use a separate thread like the Timer object from the System namespace.
Dmitry Streblechenko (MVP) http://www.dimastr.com/redemption
Redemption - what the Outlook
Object Model should have been
Version 5.4 is now available!
- Marked As Answer by mvsk Friday, December 28, 2012 11:26 PM
Friday, December 28, 2012 11:58 PM
Thanks for quick response Dmitry, that worked :)