To reproduce:
- Add ribbon with a single button to a form.
- Upon the button click create a workbook.
- Change your DPI setting to 150%
- Start the app and press the button.
Workaround:
- Add manifest file to the project.
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" >
<asmv3:application>
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
<dpiAware>false</dpiAware>
</asmv3:windowsSettings>
</asmv3:application>
</assembly>