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,
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://www.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.
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,
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
When I mentioned "here is the example" I have inserted and image from my PC, but I suppose it is not showed in the post (I don't know why).
Anyway I have created an example project that reproduce the problem, I hope I can attach it to this post.
Thanks
TestDPI.zip
Thank you for sharing the sample. i noticed that you extended the control hence i am not able to test the sample against any other sample, but doing some research i find we had DPI issue against version 23.1 which was fixed with last service release 23.1.177 so get the SR from your infragistics account and try to upgrade your project to build 177 and test again..
Also i noticed that missed setting MaxInfragisticsDpiAwareness on form load so add this as well including app config code which you set already:
Public Sub New()
' This call is required by the designer. InitializeComponent()
' Add any initialization after the InitializeComponent() call. Infragistics.Win.DpiUtilities.MaxInfragisticsDpiAwareness = Infragistics.Win.InfragisticsDpiAwareness.PerMonitorDpiAware
End Sub
This should help. If not then share your complete sample including custom control code as well to have further investigation ot our end or if you cant share the code than at your end try to downloads the latest trial version 25.1 and test your sample , check if issue still exist with 25.1 then we can log a bug to get the fix else if issue is with only 23.1 then you would have to upgrade to latest because V23.1 is not supported .
Thank you
Thank you for your reply.
I'd like to try your suggestion with SR 23.1.177 but actually, from my account, I can't download any release because my subscription expired on November 2024 and all downloads are disabled. Do you know if there is a chance to download an old SR or a Complete bundle (for example 2024 V1) that has been released during the active range of my subscription?
I confirmed with the sales , if your license has expired then you cant download any version . You may contact to sales directly and ask for the back key for V23.1 to apply SR 23.1.177 patch.
At my end i tried upgrading your project to 177 but due to your custom control or something project is not upgrading to any version ,(screenshot attached for the reference )
Yes when i tried to comment out the font like you explained ,form displayed much better , so yes you can use this workaround if you cant upgrade to latest.
error.zip