Questions tagged [dpi-aware]

This name is used for Windows Applications that behave correctly in high DPI windows mode

73 questions
0
votes
1 answer

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 However, I want to use the Visual Studio Setup…
0
votes
0 answers

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 the internet other than the official example…
ironsight
  • 1
  • 3
0
votes
0 answers

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 open the file dialog, which is done by clicking the…
Aakuho
  • 33
  • 4
0
votes
0 answers

Disable DPI awareness for WinForms dialog called from WPF

We have a main WPF application which is DPI aware, also we have a Winforms application which is NOT DPI aware. DPI awareness is set through manifests for both applications. When they are run independently it's all fine. Now we need to show some…
xll
  • 3,019
  • 2
  • 16
  • 19
0
votes
1 answer

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 overlapped windows between monitors, they scale…
0
votes
1 answer

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 along and followed the steps from this…
Akos
  • 210
  • 4
  • 14
0
votes
1 answer

VC++08 make MFC apps DPI aware without updating VC++

I may not have the option to simply update to a more recent VC++ version as would be ideal - the project is big and the update could break a lot of things, plus my lead may tell me not to pursue this. I'm wondering if anybody knows of a means by…
PBandJ
  • 21
  • 5
0
votes
0 answers

No video preview image from DirectShow

I have an old .Net application that I wrote years ago that includes a video preview window. This uses a 3rd party library called DirectShowLib-2005.dll. My code is based on some example code I found online that I converted from c# to Vb.net.…
Phil Preen
  • 589
  • 5
  • 20
0
votes
0 answers

How to set DPI awareness of COM class loaded via DllSurrogate

I have tried every single manifest example under the sun in order to get my small application to scale properly (on Windows 8.1). Here's my latest attempt, for example:
user15025873
0
votes
0 answers

C# Winforms AutoScaleMode DPI and Toolbar Buttons

My WinForms (C# .NET 4.6) application needs AutoScaleMode = Dpi for the sake of other features. This works great for 99% of my customers. They are typically using Windows Display Scaling of 100%, 125% or even %150. However, I have a customer…
Mark Malburg
  • 125
  • 1
  • 9
0
votes
0 answers

Make VB.NET app DPI Aware (Visual Studio 2012)

I'm trying to make an image file from a control using CopyFromScreen, and it fails unless I set the scale to 100%. With a larger scale the image is progressively offset left and up, the further right and down the window is on the screen.…
0
votes
0 answers

DpiAware in service application

I have a C++ service that execute a Delphi application on NT AUTHORITY\SYSTEM account. The manifest file below was embedded correctly on Delphi application, but application still isn't dpi aware, for example when take a screenshot with 125% DPI the…
user13342561
0
votes
1 answer

Handling change of primary DPI without restarting the app

I have a WPF project which draws windows (like popups) over a different app 'APP', according to some elements' position of APP. Those windows' position is calculated according to the system DPI (aka primary monitor's DPI). When I change the primary…
Alonzzo2
  • 959
  • 10
  • 24
0
votes
1 answer

Unable to make app DPI aware - this is not a duplicate

I cannot make my application DPI-aware. In app.manifest I uncommented: true
RJPisscat
  • 53
  • 4
0
votes
0 answers

confused about return of 'Screen.Bounds' in WPF and Winform

I have two monitor(1:3840X2160 200% scale, 2:1280X1024 100% scale) Then I write something to get my screen resoluton. System.Drawing.Rectangle entireSize = System.Drawing.Rectangle.Empty; foreach (System.Windows.Forms.Screen screen…
Shawn
  • 82
  • 1
  • 6