How can I lock the DPI in a FORM developed in Visual Studio 2022, so that it does not change ratio due to Windows screen display scaling?

Wang, Xue 0 Reputation points
2025-05-23T10:30:46.7+00:00

How can I lock the DPI in a FORM developed in Visual Studio 2022, so that it does not change ratio due to Windows screen display scaling?

I hope to be able to "lock DPI" when developing Windows Forms applications using Visual Studio 2022, so that the application screen will not deform or enlarge due to the Windows display scaling (for example, changing from 100% to 125%), resulting in certain parts or fields of the page not being fully displayed. How can I achieve this?

Developer technologies | Visual Studio | Setup
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.