We are using an add-in express region, which loads on the right-hand side of Outlook. In that form region, we have one user control, MyContainer
. This in turn contains two controls.
In MyContainer
, we need to decide on the visibility of each child control.
A method involving ActiveInspector
and ActiveExplorer
, is not reliable.
Example
Opening more than one compose window in the main explorer window, I happen to switch between explorer views, which are; Sent, Outbox, etc. I still find the explorer and inspector objects.
I need a good way to ensure that the window in which my region or MyContainer control is loading in is a compose/read or main Explorer (Inbox/Sent/Drafts/Outbox).
I have tried a number of things, but with no success.
Any pointers or suggestions will be really helpful.