Hello,
I am using Infragistics 23.1 in my application. The app has a layout problem when the dpi / scaling of the monitor is changed from 100% to higher (125% or 150%). All the controls look bad-sized and the app is almost unusable.
Here is an example
In my app.manifest, I've added the following lines
<asmv3:application> <asmv3:windowsSettings> <dpiAware xmlns="">schemas.microsoft.com/.../dpiAware> <dpiAwareness xmlns="">schemas.microsoft.com/.../dpiAwareness> </asmv3:windowsSettings> </asmv3:application>
I have tried to set the MaxInfragisticsDpiAwareness to all possible values, like this
Infragistics.Win.DpiUtilities.MaxInfragisticsDpiAwareness = Infragistics.Win.InfragisticsDpiAwareness.SystemDpiAware
But with no luck
Do you have any idea on how to solve the issue?
Thanks,
Claudio Di Flumeri
Hello Claudio,
Thank you for the update. You mentioned "here is the example" so did you attach the sample code or image for the reference?
Please make the attachment again , and i will try to run the sample on my machine with 150 or 200% DPI
My app is developed under .NET Framework 4.8.
I have tried to use the code you suggested in app.config (and in the meantime I have dropped the code from app.manifest, I have read this is no longer recommended).
The result is almost the same, the "visual" glitches remain, they are just slightly different. Here is an example
I have the problem on my development machine (so a local environment, no VPN), Windows 11 24H2.
Thanks for any other suggestion,
May i know which framework version you are using ?
Try using this code in the app.config file :
<System.Windows.Forms.ApplicationConfigurationSection> <add key="DpiAwareness" value="PerMonitorV2" /> </System.Windows.Forms.ApplicationConfigurationSection>
Here is our online help document for the reference :
https://ko.infragistics.com/help/winforms/dpi-scaling-support
This should help , if not then i am sure its something related to your environment.
Which OS do you have? Are you connected the machine with VPN ?
Provide more information about your environment.