Hidden Region appears after each folder switch

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

Hidden Region appears after each folder switch
 
This forum has moved to a new location. From now on, please post all your questions about Add-in Express Regions on .NET and VSTO forum.
Russell Wilson




Posts: 2
Joined: 2012-10-30
Hello,

I am using a VSTO region which needs to be shown regardless of which folder is selected (ADXOlCachingStrategy.OneInstanceForAllFolders). The user also has the ability to hide this region, which is being performed by setting ADXOlFormsCollectionItem.FormInstances().Visible = false. The region is hidden as expected, however, if the user then changes Outlook folder, the region appears again.
Is there a specific approach to perform this functionality?

Thanks in advance,
Russ
Posted 30 Oct, 2012 10:44:50 Top
Andrei Smolin


Add-in Express team


Posts: 18980
Joined: 2006-05-11
Hello Russell,

When the user hides the pane, you set a flag; then you check the flag in ADXOlForm.BeforeFormShow and set ADXOlForm.Visible = false to prevent form from showing. Note that the form is displayed whenever the context matches that specified by properties of ADXOlFormCollectionItem.


Andrei Smolin
Add-in Express Team Leader
Posted 30 Oct, 2012 11:14:58 Top
Russell Wilson




Posts: 2
Joined: 2012-10-30
Many thanks Andrei, works as expected.
Posted 30 Oct, 2012 11:38:24 Top