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
http://www.add-in-express.com/forum/read.php?FID=5&TID=5444&MID=27105&phrase_id=1628425#message27105.

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


Guest


Hello Kristian,

Please have a look at the following sample project http://www.add-in-express.com/support/addin-c-sharp.php#form-regions.
Posted 06 Aug, 2009 07:29:31 Top