What fields change when you OPEN a contact item and read it?

K

Kristian Karre

When you open a form and directly close it with the Esc. key, what
fields are changed then? I have to guard changes in PropertyChanged and
CustomPropertyChanged events to know when to inform people of changes
but it seems as if Outlook feels that every opened item has changed.
I tried a Select Case construct where I made an exception for the field
ConversationIndex, but there must be others?

Grateful for any input..
Kristian
 
K

Kristian Karre

Thanks Sue,
But I already tried that.
There must be a field that those events doesn't trap -
when I press Esc. I get the message "Do you want to save changes" etc.

Kristian



Sue wrote:

You can test for yourself with this code:

Sub CustomPropertyChange(ByVal Name)
MsgBox Name
End Sub

Sub PropertyChange(ByVal Name)
MsgBox Name
End Sub

--
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
 
S

Sue Mosher [MVP]

What's in your Item_Open event handler?

Kristian Karre said:
Thanks Sue,
But I already tried that.
There must be a field that those events doesn't trap -
when I press Esc. I get the message "Do you want to save changes" etc.

Kristian



Sue wrote:

You can test for yourself with this code:

Sub CustomPropertyChange(ByVal Name)
MsgBox Name
End Sub

Sub PropertyChange(ByVal Name)
MsgBox Name
End Sub
 
K

Kristian

-----Original Message-----
What's in your Item_Open event handler?

"Kristian Karre" <[email protected]> wrote in
message news:%[email protected]...
Thanks for all help so far,
I found some peculiar code in my Item_Open,
Item_Close and Item_Write event procedures.

My only problem now is:
If I open an existing contact item and change my listbox,
how can I fix so Esc would trigger the usual "Do you want
to save" message.
I tried in Item_Close:
 

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