This name is used for Windows Applications that behave correctly in high DPI windows mode
Questions tagged [dpi-aware]
73 questions
117
votes
7 answers
How to configure an app to run correctly on a machine with a high DPI setting (e.g. 150%)?
I've created a simple Winforms application in C#. When I run the application on a machine with high DPI settings (e.g. 150%), the application gets scaled up. So far so good!
But instead of rendering the fonts with a higher font size, all texts are…

Boris
- 8,551
- 25
- 67
- 120
81
votes
10 answers
Creating a DPI-Aware Application
I have a form application in C#. When I change the monitor's DPI, all the controls move.
I used the code this.AutoScaleMode = AutoScaleMode.Dpi, but it didn't avoid the problem.
Does anyone have an idea?

RRR
- 3,937
- 13
- 51
- 75
30
votes
3 answers
Java disable dpi-aware not working
I'm trying to run a Java application with -Dsun.java2d.dpiaware=false argument but nothing happens.
I expect to have a blurred UI but with normal size of icons and fonts, it seems that this flag does not work.
I'm using JDK 1.8.0_45 on Windows…

blow
- 12,811
- 24
- 75
- 112
19
votes
1 answer
DPI Awareness - Unaware in one Release, System Aware in the Other
So we have this really odd issue. Our application is a C#/WinForms app. In our 6.0 release, our application is not DPI aware. In our 6.1 release it has suddenly become DPI aware.
In the 6.0 release, if you run it in high DPI, it uses Windows bitmap…

Roel Vlemmings
- 359
- 2
- 5
12
votes
2 answers
My WPF app is per-monitor dpi-aware out of the box. I was not expecting that?
I am a bit confused about per-monitor dpi-aware in WPF. I thought you need to do some work to make your windows scale properly on different monitors (as described in Developing a Per-Monitor DPI-Aware WPF Application).
But I've just ran my app on…

Nick Sologoub
- 724
- 1
- 7
- 21
8
votes
2 answers
Make Windows Common Dialogs "Per Monitor DPI-Aware"
I have a program which was created in VS2008 with MFC.
Now I've modified it to make it "Per Monitor DPI-Aware", and it's almost done. I've modified the manifest and handled the WM_DPICHANGE message. But there's still one problem:
I used CFileDialog…

Caspar Lee
- 103
- 8
6
votes
1 answer
Per monitor DPI aware Windows system image list
How do I retrieve system image list for given DPI?
When an application is system DPI-aware, the SHGetFileInfo and similar functions return a handle to a correctly scaled system image list. C++ example:
handle =
SHGetFileInfo(L"", 0, &fileInfo,…

Martin Prikryl
- 188,800
- 56
- 490
- 992
5
votes
2 answers
Setting/scaling width of control scrollbars
When per-monitor DPI changes (WM_DPICHANGED message), the built-in scrollbars of controls like list view, tree view, rich edit, listbox are not scaled (as expected).
They need to be scaled programmatically.
Though I didn't find any API (neither in…

Martin Prikryl
- 188,800
- 56
- 490
- 992
5
votes
1 answer
DPI aware and Rect
I got a small problem which I can't seem to find the answer of. I have a application that gets certain processes and gets the window size of it. Only the problem is it takes a percentage of the actual screen size (which the user sees).
I want to…

Kuubs
- 1,300
- 1
- 14
- 42
4
votes
0 answers
How to make electron application responsive to DPI scaling?
I got to know that most of the legacy windows application are not automatically responsive to DPI scaling mentioned at
https://learn.microsoft.com/en-us/windows/win32/hidpi/high-dpi-desktop-application-development-on-windows
How to make electron…

Alok
- 7,734
- 8
- 55
- 100
4
votes
0 answers
DPI-aware manifest NOT embedding
I have tried everything imaginable. I have a winform that simply refuses to embed the DPIaware setting in my manifest within the exe. When I copy the exe to another machine to run, I MUST copy the manifest or it will not scale properly. If I add the…

DPIsht
- 51
- 1
4
votes
2 answers
Declaring high DPI awareness per window on Windows 8
I'm developing audio plugins that run within a host such as Cubase, and I'm looking to add High DPI support. This is problematic because all host applications that I know of declare themselves as non-high DPI aware, so all windows are scaled…

Frederik Slijkerman
- 6,471
- 28
- 39
3
votes
0 answers
How do I add DPI-Awareness to my Visual Studio project?
In the ValidationResult that I get when readying my app for submission to the Microsoft Store (which my app "PASSED WITH WARNINGS") , I got this "Warning" under the "High-DPI support" section of the report:
I definitely do not want users to…

B. Clay Shannon-B. Crow Raven
- 8,547
- 144
- 472
- 862
3
votes
1 answer
UIAutomation method ElementFromPoint() retrieves an incorrect element from Notepad on Windows 10
We are developing a C# Windows Forms App and use UI Automation to record user activity. Our app declares its DPI-awareness as Per-monitor, so the system doesn't lie to it with coordinate virtualization.
On Windows 10 we ran into an issue with…

Kangaxx
- 61
- 5
3
votes
1 answer
Winapi scaling in different machines
I've been trying to design a small interface with winapi (no MFC) for some weeks and there is a problem I've not been able to solve. The creation of my window is specified in pixels, but the size of my controls is in logical units.
I thought the…

Malanche
- 191
- 8