Changing ExplorerLayout in the ADXBeforeFormShow event

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

Changing ExplorerLayout in the ADXBeforeFormShow event
 
Ronny Hogland




Posts: 10
Joined: 2018-12-04
Hi Support

How do I change the ExplorerLayout during a load of an ADX form?
Should the ADXBeforeFormShow event be used here?

Regards
Ronny Hogland
Posted 10 Sep, 2019 08:45:32 Top
Alexander Solomenko


Add-in Express team


Posts: 137
Joined: 2009-02-27
Hi Ronny,

This is not the best solution. It will be better to add the second ADXOlFormsCollectionItem to another ExplorerLayout and use the same or different ADXOlForm class. In the ADXBeforeFormShow event handler, you can check the Outlook context and then use the Visible property to show / hide the form for corresponding ExplorerLayout.
Regards,
Aleksandr Solomenko
Posted 11 Sep, 2019 06:46:12 Top
Ronny Hogland




Posts: 10
Joined: 2018-12-04
Great

Thanks Alexander
Posted 11 Sep, 2019 07:07:21 Top