Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: ContactItem Write event not getting called

Geek News

ContactItem Write event not getting called
"Dave" <KingOfTheBeach[ at ]community.nospam> 4/18/2007 8:52:19 PM
Anyone know how to do this?

In my COM addin using outlook 2000 I have a Write and a Close event for the
contact item and the Close event gets called, but the Write event never gets
called. Am I doing something wrong?

Private WithEvents objContact As Outlook.ContactItem

Private Sub objContact_Write(Cancel As Boolean)

End Sub

Private Sub objContact_Close(Cancel As Boolean)


End Sub

Dave


Re: ContactItem Write event not getting called
"Michael Bauer [MVP - Outlook]" <mb[ at ]mvps.org> 4/19/2007 5:44:27 AM


The Write event should be called if the item has changed and the user
chooses to save it. If the user first clicks to close the item, then saves
the item from the upcoming dialog then the Write event fires after the Close
event.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - Categorize Outlook data:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Wed, 18 Apr 2007 15:52:19 -0500 schrieb Dave:

[Quoted Text]
> Anyone know how to do this?
>
> In my COM addin using outlook 2000 I have a Write and a Close event for
the
> contact item and the Close event gets called, but the Write event never
gets
> called. Am I doing something wrong?
>
> Private WithEvents objContact As Outlook.ContactItem
>
> Private Sub objContact_Write(Cancel As Boolean)
>
> End Sub
>
> Private Sub objContact_Close(Cancel As Boolean)
>
>
> End Sub
>
> Dave

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