Skip to content

How to fix DPI scaling using custom WinForms dialog #1758

Answered by oleg-shilo
nefarius asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@nefarius
Comment options

@nefarius
Comment options

@nefarius
Comment options

@joridiculous
Comment options

@nefarius
Comment options

Answer selected by nefarius
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants