80 questions
0
votes
0
answers
98
views
WinForms DPI scaling inconsistency: child forms rescale differently than main form
I'm working on a VB.NET WinForms app (.NET Framework 4.8) and seeing inconsistent scaling between forms. I develop on my work laptop using a Remote Desktop Connection.
This problem began when I ...
0
votes
2
answers
89
views
How to change the DPI awareness setting of my .NET 4.8 WPF application?
Of course I already googled that. So I added the app.manifest with the <dpiAwareness> tag to the project and referenced it in the project file. This tag is also found in the compile output ...
0
votes
1
answer
302
views
How to center a CustomTkinter App on the screen?
The way I get it, scaling is dpi aware in customtkinter, but positioning is not?
It seems I need to set x_pos and y_pos regarding x+<x_pos>+<y_pos> in physical pixels (retrieved with e.g. ...
0
votes
1
answer
111
views
How made OxyPlot DPI awareness in wpf?
I have a wpf app DPI aware with this code in the manifest filed:
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http:/...
0
votes
0
answers
114
views
Problem scaling a grid of buttons in a C# Winforms app
I'm working on a WinForms application in C# that dynamically generates a grid of buttons at runtime. The application runs fine on a PC monitor with 100% scaling, but when I run it on my laptop's ...
0
votes
0
answers
192
views
Windows Form - CefSharp automatically resizes window on monitor 125%
I have 2 monitors: the main monitor has 125% of zoom (laptop display), the second one is a secondary monitor that has a standard zoom of 100%.
Now i have a Winform application (.NET Framework 4.8) ...
1
vote
0
answers
56
views
How to draw a 6 inch width gdi+ rectangle that is 6 inches regardless of monitor resolution or size;
I have at the start done:
if (SetProcessDpiAwareness(PROCESS_PER_MONITOR_DPI_AWARE) != S_OK) OutputDebugStringA("WARNING: could not set DPI awareness");
if (!SetProcessDpiAwarenessContext(...
1
vote
0
answers
229
views
How to use "wx_dpi_aware.manifest" of wxWidgets wxMSW with MinGW and CMake?
I'm using wxWidgets on Windows with MinGW64 toolchain and CMake. I am confused about how to make my program DPI-awared. When using Visual Studio, "wx_dpi_aware.manifest" can simply solve the ...
0
votes
1
answer
326
views
WPF Window title bar different size with PerMonitorV2 or PerMonitor
I have a wpf application (.Net 7) with DPI Awareness but I have some problems with the sizes of windows title bar with different DPI scale in different pc's.
I two pc's has Windows 11 version 22H2.
...
0
votes
1
answer
130
views
How to setup a WinForms application size when deploying with Visual Studio Installer?
I have a WinForms application, everything works fine when I run it.
If I publish with the built-in publish tool, it also works fine. The form is the size I want after installation.
built-in publish
...
0
votes
0
answers
117
views
Is it possible to automatically adjust the size of the title bar in WPF based on monitor DPI scaling?
I'm trying to make the title bar of a WPF main window automatically adjust its size to the DPI scaling of the monitor that's showing the application.
Unfortunately, I couldn't find anything useful on ...
0
votes
0
answers
356
views
Why is the entire form resizing when opening CommonOpenFileDialog in C#?
I have a problem I couldn't quite find the fix for.
To make it clearer, I will post pictures, instead of just trying to describe it with text. My base application looks like this:
But If I try to ...
0
votes
1
answer
702
views
Win32: How to make popup window match monitor DPI
I'm working on a Win32 app with multiple windows, some of which use WS_POPUPWINDOW style (no caption) and some of which use WS_OVERLAPPEDWINDOW style. The app has System DPI awareness.
When I move the ...
0
votes
1
answer
1k
views
Does WPF Per Monitor DPI awareness really work by default?
Recently I started looking into Per Monitor DPI awareness for windows 10 and noticed that it should be supported by default as I'm using .net5.0 if there are a couple of things configured.
So I went ...
3
votes
0
answers
2k
views
Set DPI scaling for CefSharp window only in WPF application
I'm trying to convert IE web browser window into a CefSharp (v 96.0.180) window into as a part of a larger WPF application. The application itself follows the system dpi level (resizes UI with it), ...