Recently I bought 2 more displays to use with my laptop. However, I’m pretty much unable to use the searchbox (ctrl+F) when Visual Studio is positioned on a secondary monitor. It seems like you’re always clicking 6 cm next to the place your cursor is at.
It seems that the solution is pretty easy:
- Open regedit
- Navigate to Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
- Add a new entry to the key:
- Name = location of your devenv.exe — in my case C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe
- Value = DPIUNAWARE
Since I was starting Visual Studio as administrator (you know, devenv.exe → Troubleshoot compatibility → This program requires additional privileges), there was already an entry with this name. So I had to use:
- Name = C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe
- Value = ^ RUNASADMIN DPIUNAWARE