Can I make two Outlook region forms meet in the middle to cover the main Outlook pane

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

Can I make two Outlook region forms meet in the middle to cover the main Outlook pane
Creating a new calendar view 
Mike VE




Posts: 168
Joined: 2007-09-09
I want to create a new specialised Calendar view. I understand that the only form regions available are the Dock Top, Bottom, left and right. I have tried adding an ADXOlForm to the DockTop and another to the DockBottom but the problem is getting them to meet in the middle. I can do it manually but I need to do it programmatically to take account of the different sizes that will be encountered on client's machines. I want the bottom form, where the data will be displayed, to be as big as possible.

If this is not possible and alternative is launching a windows form but I would want to line its top up with the bottom of the Outlook ribbon. Is that possible?

Thanks.

Mike VE
Posted 04 May, 2018 06:40:09 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Hello Mike,

As far as I know Add-in Express shouldn't let you show two forms in this way: it should limit the forms' sizes to prevent this. You can check this by setting e.g. Height to a value which is far higher than the screen size.

As to showing a Windows.Form, you should use Spy++ to study the window structure and locate the window containing the Ribbon.


Andrei Smolin
Add-in Express Team Leader
Posted 04 May, 2018 08:25:58 Top
Mike VE




Posts: 168
Joined: 2007-09-09
Thanks Andrei. The windows form is launched from a button on an ADXFormRegion. It urns out I can go back through the parents to get the location and size of the form and work from that.
Posted 08 May, 2018 05:36:21 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
It's great!


Andrei Smolin
Add-in Express Team Leader
Posted 08 May, 2018 06:00:38 Top