Dpi Aware WinForms

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

Dpi Aware WinForms
 
Alexander de Man




Posts: 47
Joined: 2007-05-03
Hello,

In the most recent major version you've added support for multiple monitors with different DPI settings by a introducing an ADXDPIChanged event on for instance a WordTaskPane.

In our add-in we also use WinForms, and as far as I can tell, there isn't any built-in support to
detect dpi changes in this case. Am I correct? If so, are you planning on adding this in the near future?

Thanks in advance,
Alexander
Posted 13 May, 2019 06:24:48 Top
Andrei Smolin


Add-in Express team


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

We could provide an event that occurs when the host application's window is moved to another monitor but I assume you don't need it. If so, you should modify the code of your forms according to the information they provide on these pages:
- https://docs.microsoft.com/en-us/windows/desktop/Win7AppQual/user-interface---high-dpi-awareness
- https://docs.microsoft.com/en-us/windows/desktop/hidpi/high-dpi-improvements-for-desktop-applications
- https://docs.microsoft.com/en-us/windows/desktop/hidpi/high-dpi-desktop-application-development-on-windows


Andrei Smolin
Add-in Express Team Leader
Posted 13 May, 2019 08:57:05 Top
Alexander de Man




Posts: 47
Joined: 2007-05-03
Hello Andrei,

Thanks for your reply and I will look at the links you've provided.

Regards,
Alexander
Posted 14 May, 2019 09:20:17 Top
Andrei Smolin


Add-in Express team


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


Andrei Smolin
Add-in Express Team Leader
Posted 14 May, 2019 09:57:00 Top