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,
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
I’ve performed some additional tests and identified a possible cause of the issue.
The problem seems to occur when explicitly setting a different font for the form. In my example, I set the font to “Tahoma, 8.25 pt”. After removing the following line from the frmLogin.Designer.vb file:
frmLogin.Designer.vb
Me.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
When I run the application, the form displays almost correctly, even at 150% DPI. I can then slightly adjust the layout using the form’s AutoScale property.
Could you please check if you can reproduce the same issue?
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?
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
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