Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Outlook Reminder Events - not firing

Geek News

Outlook Reminder Events - not firing
sam.fielden[ at ]l-3com.com 8/3/2006 9:56:03 PM
I am developing an Outlook Add-in to Outlook 2003 using VSTO in .Net
2.0 using C#

I already have code working, tested, documented and released, I am
currently working on an upgrade to the code base.

I am experiencing some problems capturing Reminder events of the form:

ThisApplication.Reminders.ReminderFire
ThisApplication.Reminders.ReminderChange
ThisApplication.Reminders.ReminderRemove
ThisApplication.Reminders.ReminderSnooze

Is essence what I am attempting to achieve is to take specific actions
(specific to my add-in) when the user selects to "Dismiss" or "Snooze"
a reminder alert, or even "Dismiss All". I have some sample code below
which demonstrates what I'm doing to help you visualise and understand
my situation.

<snip>

using Outlook = Microsoft.Office.Interop.Outlook;

private void ThisApplication_Startup(object sender, System.EventArgs e)
{
// subscribe to the reminder event which fires when a reminder is
displayed to the user
this.Reminder += new
Outlook.ApplicationEvents_11_ReminderEventHandler(ReminderEventHandler);

// subscribe to the event which fires when the user snoozes the
reminder
this.Reminders.Snooze += new
Outlook.ReminderCollectionEvents_SnoozeEventHandler(Reminders_Snooze);
}

private void ReminderEventHandler(object Item)
{
// this event fires successfully all the time
System.Diagnostics.Debug.WriteLine("A reminder has been displayed
at " + DateTime.Now.ToString());
}

private void Reminders_Snooze(Outlook.Reminder ReminderObject)
{
// this event NEVER fires EVER
System.Diagnostics.Debug.WriteLine("The user snoozed a reminder at
" + DateTime.Now.ToString());
}

</snip>

I've searched high and low all over the net for other peoples solutions
to this but have found nothing. Any and all advice here would be
useful.

Sam.

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net