How to detect my outlook form's inspectormode

Add-in Express™ Support Service
That's what is more important than anything else

How to detect my outlook form's inspectormode
 
Byung Kun Kim


Guest


I created a outlook inspector form BottomSubpane/olMail & Read/Compose.
How can I detect my outlook form's Read or Compose mode in that form itself?
Posted 12 Oct, 2016 21:59:03 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
Hi Byung,

Get Inspector.CurrentItem, cast it to Outlook.MailItem, and retrieve MailItem.EntryId. If this string is empty, then the user composes the email. If it isn't empty, retrieve MailItem.Sent: if it is true, the the user reads the email, otherwise, the user composes the email.


Andrei Smolin
Add-in Express Team Leader
Posted 13 Oct, 2016 02:08:21 Top
Byung Kun Kim


Guest


Thanks a lot. That works.
Posted 13 Oct, 2016 02:56:18 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
You are welcome!


Andrei Smolin
Add-in Express Team Leader
Posted 13 Oct, 2016 03:16:34 Top