A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

appointment 'Write' event not firing as expected



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 22nd 07, 02:37 PM posted to microsoft.public.outlook.program_addins
JohnV@nn
external usenet poster
 
Posts: 14
Default appointment 'Write' event not firing as expected

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  
Old May 23rd 07, 11:18 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default appointment 'Write' event not firing as expected

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 09:09 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.