-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IconPictureBox reduces scale of entire application #23
Comments
Hi @rqsanderson, thanks for reporting. Will look into it. |
After a short investigation the rescaling is not related to the IconPictureBox but all Windows Forms items that initialize the font resources. For instance, instantiating an The setting of Probably related to DPI virtualization, cf.: |
On Windows 10 (.NET 4.7+) you can enable DPI awareness in your windows forms application by adding <System.Windows.Forms.ApplicationConfigurationSection>
<add key="DpiAwareness" value="PerMonitorV2" />
</System.Windows.Forms.ApplicationConfigurationSection> to your |
@rqsanderson Closing this issue since a workaround exists. |
When an IconPictureBox is instantiated on a form in a WinForms application, it reduces the display scale of the ENTIRE application to the Windows out-of-the-box standard 96 dpi. This is a rather annoying issue for users who prefer to run at a higher logical dpi.
To reproduce, make sure your system settings are as follows, before running your application:
System: Windows 10
System fundamental dpi: 96
Monitor scaling: 125% (120 dpi)
App forms are set to AutoScaleMode = Font
When you run your application, as soon as an IconPictureBox is instantiated with new in the designer file's InitializeComponent method, the application will immediately shrink to the system dpi for the remainder of the time the application is running.
The text was updated successfully, but these errors were encountered: