![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I have a vsto add-in with event handlers on Close and Write. I'm not
getting the Write event when I create an appointment, press escape, get the prompt "do you want to save changes", answer 'Yes'. I get the Close event, but not Write. Here is the behavior I'm seeing: Create appointment, click Save&Close: 'Write' fires, 'Close' fires Create appointment, press escape, answer 'No': 'Close' fires Create appointment, press escape, answer 'Yes': 'Close' fires Note that when I close & save the appointment by pressing escape and answering 'Yes', the appointment is properly saved in the calendar; I just don't get the write event. Is this a known issue; can anyone else confirm that you get the same behavior? Thanks, John |
Ads |
#2
|
|||
|
|||
![]()
It's a known issue and it makes sense. Write fires before Close. If you use
Escape you're closing the item and not saving it. The fact that something was changed causes the prompt and your answer there is after Write would have fired. Just check for Saved. If you want more precision handle PropertyChange and CustomPropertyChange to see what was changed and you can save that information or just set a boolean dirty flag. -- 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 "JohnV@nn" wrote in message oups.com... I have a vsto add-in with event handlers on Close and Write. I'm not getting the Write event when I create an appointment, press escape, get the prompt "do you want to save changes", answer 'Yes'. I get the Close event, but not Write. Here is the behavior I'm seeing: Create appointment, click Save&Close: 'Write' fires, 'Close' fires Create appointment, press escape, answer 'No': 'Close' fires Create appointment, press escape, answer 'Yes': 'Close' fires Note that when I close & save the appointment by pressing escape and answering 'Yes', the appointment is properly saved in the calendar; I just don't get the write event. Is this a known issue; can anyone else confirm that you get the same behavior? Thanks, John |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Write event not firing in list view | Rick H | Add-ins for Outlook | 2 | February 21st 07 02:53 PM |
MouseWheel event not firing | aiKeith | Outlook - Using Forms | 1 | February 9th 07 08:07 PM |
Problem with Event firing of Function MyListbox_Click() | John E. | Outlook - Using Forms | 3 | January 2nd 07 12:11 AM |
Mapi Folder Items ItemChange event is not firing | AtulSureka | Outlook and VBA | 3 | February 5th 06 06:25 PM |
Outlook Addin CommandBarButton Click Event Not Firing | Stu | Add-ins for Outlook | 0 | January 17th 06 02:10 AM |