How to fix DPI scaling using custom WinForms dialog #1758
-
The built-in dialogs appear to handle different scaling rather well: However the custom dialog I slipped in is not happy: Could you point me in the right direction how to solve this? As of now I do not want to migrate to WPF since I'd need to rip apart the entire project for this and this simple addition already got me enough headaches 😛 Cheers Code
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
Your task is rather difficult. Basically you want to implement WPF feature in the WinForms project. I am not saying it's impossible, though. I suggest you create a test project from the "WixSharp Setup - Custom UI" custom UI VisualStudio template. It will give you the complete source code for all dialogs and you can do whatever DPI magic you want. In fact you will see there Good luck. |
Beta Was this translation helpful? Give feedback.
Your task is rather difficult. Basically you want to implement WPF feature in the WinForms project.
I am not saying it's impossible, though.
I suggest you create a test project from the "WixSharp Setup - Custom UI" custom UI VisualStudio template. It will give you the complete source code for all dialogs and you can do whatever DPI magic you want. In fact you will see there
ResetLayout
method, which is my ambitious attempt to do what you are trying to accomplish. But then I gave up and implemented WPF UI stream.Good luck.