Hi, all. I am using the example you guys provide in your website and you can get from here: https://www.telerik.com/blogs/winforms-scaling-at-large-dpi-settings-is-it-even-possible-#example
As you can see in the image, I open the form in my main screen with Scale 100%. I have a second screen running in 150%. When I grab the form near to the left edge side of it, it resizes in one way, what I believe that is the correct way. However, if you grab the form near to right edge side, near the minimize, maximize and close button, it resizes differently. We have several users using our application and we are not able to fix this scalling issue, even in your own example. Could you guys have a look at it and prioritize? This kind of issue has been around for a long time without a final resolution. if not possible, let us know that we will have to decide move to another development tool.
Telerik version: 2024.2.514
Hi Nadya, thanks for you feedback. But this problem is not just related to the anchoring. Even a new form with just a button without anchor when using the PerMonitorV2, has an form resizing issue. The issue is not just with anchor.
app.manifest
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"
xmlns:asmv1="urn:schemas-microsoft-com:asm.v1"
xmlns:asmv2="urn:schemas-microsoft-com:asm.v2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" >
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<asmv3:application>
<asmv3:windowsSettings>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, System</dpiAwareness>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">True/PM</dpiAware>
</asmv3:windowsSettings>
</asmv3:application>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- A list of all Windows versions that this application is designed to work with.
Windows will automatically select the most compatible environment.-->
<!-- Windows 10 -->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
<!-- Windows 8.1 -->
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
<!-- Windows Vista -->
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
<!-- Windows 7 -->
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
<!-- Windows 8 -->
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
</application>
</compatibility>
</asmv1:assembly>
When loaded in 100%
Moving to a screen with 150%.
I am attaching the project, but you can create your own to test, the issue will be the same when using PerMonitorV2. PerMonitor works fine, but has issues when anchoring as you discussed here.
Hello, Henri,
The provided project is greatly appreciated. I was able to reproduce the problem and investigate the setup.
I noticed that you use anchors for the controls such as dropdownlist, treeview, buttons, etc. I would like to note that we already have a known issue regarding using the right anchors for controls: WinForms: Controls with Right anchors are not scaled correctly on higher DPI
This issue has already been escalated to our development team and its priority is increased. We always strive to address important and emerging issues for our clients. However, I can not give you an exact time frame for when it should be fixed due to many factors such as the complexity of the issue, priority, available resources, and others.
You can subscribe to the item to get notified once its status has changed. Until then, what I can suggest is not using the right anchoring, if possible, to avoid layout issues. I understand that this may not be suitable for you, but at this moment I am not able to suggest another work for this issue. Please accept our apologies for the inconvenience that this is causing to your users.
Meanwhile, I am changing the status of this bug report since the issue is already logged and I relate them in our internal issue tracking system.
Please let me know if I can assist you further.
Regards,
Nadya | Tech Support Engineer
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Hi all,
Just adding more information to my findings: it seems to work fine if you don't use PerMonitorV2
and use PerMonitor
. However, if I start my application on a monitor with a scaling factor of 150%, for example, and have controls anchored to the bottom and right, they don’t scale correctly.
Let me know if further details are needed.