The first run after clean install my ADX solution

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

The first run after clean install my ADX solution
 
Byung Kun Kim




Posts: 48
Joined: 2011-12-15
I created outlook COM addin(placed outlook bottom read pane) msi installer with ADX.

My addin has two panels horizontally at design time, each of them will be shown(panel.visible=true) or hidden when some context matches.

The users' first run experience, the ADX form size was total height of two panels created at my design time.

I found below code fragment from "adx-ol-custom-header-vb".


            Me.GetType().InvokeMember("fDefaultWidth", BindingFlags.SetField Or _
              BindingFlags.Instance Or BindingFlags.NonPublic, Nothing, Me, New Object() {Me._minimizedSize})

Is it working with "fDefaultHeight"? and is this best way to do what I want?


1. How can I set ADX form's first run size(for my current project, height is more important) different from design time form size? And next run size should be resized size by user.

2. Where the user's resizing value stored? ex) if registry, which key?
Posted 18 Nov, 2016 02:59:21 Top
Andrei Smolin


Add-in Express team


Posts: 14094
Joined: 2006-05-11
Hello Byung,

#1. You can try to set fDefaultHeight in the ADXOlForm.ADXBeforeFormShow event
#2. See HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\Outlook\Addins\ADXForm

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 18 Nov, 2016 05:28:07 Top
Byung Kun Kim




Posts: 48
Joined: 2011-12-15
I tried the code, but the form already showed up with big size before my code ran.
How can I achieve it?
Posted 21 Nov, 2016 02:32:13 Top
Andrei Smolin


Add-in Express team


Posts: 14094
Joined: 2006-05-11
Hello Byung,

Are you saying that the ADXOlForm.ADXBeforeFormShow event occurs after the form is shown? Please re-check the things.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 21 Nov, 2016 04:37:29 Top