When tree control is added to the pane is disappears from the form

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

When tree control is added to the pane is disappears from the form
 
Sergey Chizh




Posts: 69
Joined: 2012-10-23
Hi!
I found very strange behavior that is reproduced in Outlook addIn only - when tree control is added to the pane it disappears from the form.
DEMO project that shows this issue: https://drive.google.com/file/d/1ZkotWbgdhr6c-8jjqIyi__pQ1QFoTwr8/view?usp=sharing
This DEMO project contains very simple add-in that have a pane with tree on it and a ribbon button which opens a form, this form should have an empty tree - but tree is not shown. After removing pane from add-in code and reinstalling it ribbon button works as expected, tree is visible on the form.
Posted 15 Sep, 2020 10:57:04 Top
Andrei Smolin


Add-in Express team


Posts: 17361
Joined: 2006-05-11
Hello Sergey,

Office 2016+ supports multiple displays with different DPIs. The issue occurs because the DPI context of the Outlook thread and the DPI context of your form don't match. Find your project modified at http://temp.add-in-express.com/support/OutlookAddInTest.zip.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 16 Sep, 2020 05:29:11 Top
Sergey Chizh




Posts: 69
Joined: 2012-10-23
Thanks a lot, your answer is extremely helpful!
Posted 17 Sep, 2020 07:41:53 Top
Andrei Smolin


Add-in Express team


Posts: 17361
Joined: 2006-05-11
You are welcome!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 18 Sep, 2020 02:15:58 Top