Now the high score screen computer more and more, 2K screen, 4K screen after another for .net developers, especially Winform developer,
Resolution has been a troublesome thing, higher screen resolution, if still set the display to 100%, will result in very small fonts, affect the viewing,
It is therefore recommended are 150%, 200%, if not 100% main display settings, open Winform project, will be the same percentage to a lot of time
Conduct form is displayed, it will cause a lot of follow-up questions.
Based on this, after research, to provide solutions to what, in fact, the official also made it very clear on this issue:
There are three solutions:
The first is to restart the prompts to set up 100% VS, but this reboot every time, a lot of trouble,
The second is and so we will talk about,
The third main display is set to 100%, I think this embodiment is equal to nothing.
For the second solution is to modify the registry:
Open the Registry, find the path:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
Adds an option to the right:
- C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe 针对VS2017
- C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe 针对VS2019
Here it is a community version, for example, this is actually a VS installation directory, if other versions, the Community modified to correspond version.
Then set the type and value:
Type: REG_SZ
Value: DPIUNAWARE
Then on it.
If you need to turn off this prompt:
You may be performed (change False) by the following method: