Hide and show the form

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

Hide and show the form
 
Nevzat Hayri TAVUK?U




Posts: 30
Joined: 2019-12-19
I have a button in Ribbon. Pressing the button makes the enabled property set false of the OutlookForm form bottom reading pane. When I press another button then I set false to true. The form is not visible because read pane is not refreshed. how do I change the visibility of the form without refreshing the reading pane.
Posted 27 Jan, 2020 05:41:28 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Hello Nevzat,

Use ADXOlForm.Hide() and ADXOlForm.Show(). Note that the forms manager shows the the form automatically whenever the ADXOlFormcollectionItem's settings matches the current context. To prevent the form from being shown, set ADXOlForm.Visible=false (or true to let it show) in the ADXOlForm.ADXBeforeFormShow event.

That is, ADXBeforeFormShow is triggered before the form gets shown. You control whether it will be shown or not by setting ADXoLForm.Visible in that event.


Andrei Smolin
Add-in Express Team Leader
Posted 27 Jan, 2020 06:08:13 Top