Inner details of DPI scaling in Office COM add-ins

General News

Summary

Inner details of DPI scaling in Office COM add-ins Today, Im following Microsoft recommendations and using code fragments from docs.microsoft.com to investigate the behavior of a System.Windows.Forms.Form (simply a form). Heres the Click event of the button that opens the form in the DPI Awareness mode Per Monitor v2 following the above suggestions. That means the ScaleAllChildControls method should also update all picture boxes to redraw their images correctly. To bypass it, you should set the property to False, store the positions of , hide the scroll bars, perform the scaling, and restore the scroll bars visibility and positions; finally, you restore the AutoScroll property. I created a WPF UserControl and put it on an ElementHost control located on an Add-in Express pane.

Classifications

industries
No industries detected
applications
Accounting and Taxes

AskAI Classifications

Labels
Developer Tools Microsoft Office Add-ins Software Components

Linked Companies

Add-in Express
$1M to $5M