Item_Write fires twice

K

Kristian

Hello,
Thanks for the help so far (Esp. Sue Mosher).
My - hopefully last - issue is this:
My custom listbox doesn't fire
the "CustomPropertyChanged" event.
I tried to fix this with some code in the Item_Close
procedure.
If OldOwners<>PresentOwners Then
Item_Write
End If

It seems as if this triggers the Item_Write twice.
What's wrong? Is there a better way?

Grateful for any tip...
Kristian
 
K

Kristian Karre

Thanks again,
Of course - Working to late makes you blind...
Kristian

Sue wrote:
"
From: Sue Mosher [MVP]
Date Posted: 7/23/2003 6:28:00 PM

I think the statement you want is Item.Save.

Is the listbox bound to an Outlook property? If not, then it will fire a
Click event.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.slipstick.com/books/jumpstart.htm


Kristian said:
Hello,
Thanks for the help so far (Esp. Sue Mosher).
My - hopefully last - issue is this:
My custom listbox doesn't fire
the "CustomPropertyChanged" event.
I tried to fix this with some code in the Item_Close
procedure.
If oldowners<>presentowners Then
Item_Write
End If

It seems as if this triggers the Item_Write twice.
What's wrong? Is there a better way?

Grateful for any tip...
Kristian
"
 
K

Kristian

Hello again,
I got this far:
Changed to Item.Save instead of Item_write
It takes care of the double run of Item_Write.
But:
The listbox shows who is Owner of a Contact. When I
change the value of the listbox this setting should also
be saved. I'm sending ItemOwner info to a database
together with backup contact data. The code to do this is
in Item_Write.
Every change to the contact is supposed to generate an e-
mail to all the owners. It works smoothly with all
default properties AND custom properties, but NOT when I
change owners...
The Item.Save doesn't run the Item_Write as I thought.
Where should my database code be placed to run even after
having changed owners? Or, how can I make the code in
Item_Close run Item_Write once when owners have changed?

TIA,
Kristian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top