I have enabled these recommended settings in my config file:
<add key="DpiAware" value="true" />
<add key="DpiAwareness" value="PerMonitorV2" />
<add key="EnableWindowsFormsHighDpiAutoResizing" value="true" />
and also in the main function:
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Everything is top and left anchored, this is how it looks on a 100% scaled display:
When I move the window to a 150 or 175% scaled display:
As you can see, labels are offset downwards, a few pixels.
The container's AutoScaleMode is set to DPI.
How can I preserve the alignment?


I came to the same problem and after some digging I came with this control, which can be used instead of the label. Known issue: when clicking, the focused control looses the focus. This can be used both in TableLayoutPanel or standalone.
The result:
100 %
200 %
I came to this through those bad solutions in TableLayoutPanel:
The solution is inspired by: