PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Form Programming
What fields change when you OPEN a contact item and read it?
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Form Programming
What fields change when you OPEN a contact item and read it?
![]() |
What fields change when you OPEN a contact item and read it? |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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! |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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! |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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! |
|
|
|
#4 |
|
Guest
Posts: n/a
|
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? > > |
|
|
|
#5 |
|
Guest
Posts: n/a
|
>-----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: |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

