PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Form Programming What fields change when you OPEN a contact item and read it?

Reply

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

 
Thread Tools Rate Thread
Old 10-07-2003, 01:20 PM   #1
Kristian Karre
Guest
 
Posts: n/a
Default What fields change when you OPEN a contact item and read it?


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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  Reply With Quote
Old 10-07-2003, 09:23 PM   #2
Sue Mosher [MVP]
Guest
 
Posts: n/a
Default Re: What fields change when you OPEN a contact item and read it?

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


"Kristian Karre" <kristian@karrevolution.se> wrote in message news:OkdhTYuRDHA.560@TK2MSFTNGP10.phx.gbl...
> 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
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!

  Reply With Quote
Old 11-07-2003, 07:17 AM   #3
Kristian Karre
Guest
 
Posts: n/a
Default Re: What fields change when you OPEN a contact item and read it?

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


"Kristian Karre" <kristian@karrevolution.se> wrote in message
news:OkdhTYuRDHA.560@TK2MSFTNGP10.phx.gbl...
> 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




*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  Reply With Quote
Old 11-07-2003, 09:28 PM   #4
Sue Mosher [MVP]
Guest
 
Posts: n/a
Default Re: What fields change when you OPEN a contact item and read it?

What's in your Item_Open event handler?

"Kristian Karre" <kristian@karrevolution.se> wrote in message news:%23qz81x3RDHA.2480@tk2msftngp13.phx.gbl...
> 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
>
>
> "Kristian Karre" <kristian@karrevolution.se> wrote in message
> news:OkdhTYuRDHA.560@TK2MSFTNGP10.phx.gbl...
> > 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?
> >


  Reply With Quote
Old 23-07-2003, 10:56 PM   #5
Kristian
Guest
 
Posts: n/a
Default Re: What fields change when you OPEN a contact item and read it?


>-----Original Message-----
>What's in your Item_Open event handler?
>
>"Kristian Karre" <kristian@karrevolution.se> wrote in

message news:%23qz81x3RDHA.2480@tk2msftngp13.phx.gbl...
>> 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
>>
>>
>> "Kristian Karre" <kristian@karrevolution.se> wrote in

message
>> news:OkdhTYuRDHA.560@TK2MSFTNGP10.phx.gbl...
>> > 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?
>> >

>
>.
>

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:

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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