Access a non visible pane

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

Access a non visible pane
 
Kristian Benoit




Posts: 16
Joined: 2009-03-30
When composing a mail, I have a pane with visible = false in the inspector. That pane should become visible when a user click on a Ribbon/Toolbar button. I have tried getting the pane using ADXOlFormsCollectionItem.getcurrentform() with both active and visible set to true. It always return null unless my pane is already visible. I also tried getting it by iterating on ADXOlFormsCollectionItem.FormInstances matching InspectorObj with the ActiveInspector, same result.

I'm thinking of getting a global reference to the last Pane that sent me an ADXBeforeFormShow. But someone already told me not to do so
here.

Which way should I use to get access to my pane and set its visibility when a ribbon/toolbar button is clicked ?
Posted 05 Aug, 2009 18:43:23 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hello Kristian,

Please have a look at the following sample project How to set the visibility of the form in an Outlook advanced form region.
.NET, Extended MAPI, Windows Phone & RT
Posted 06 Aug, 2009 07:29:31 Top