2

I have a wizard that runs and looks beautiful (if I say so myself) the problem is on Windows XP this dialog gets severly messed up when the user changes the DPI of the font on their screen. It seems that the control it self is being moved. I honestly do not even know where to start with this.

Wizard (correct) 96 DPI (Windows 7)

Wizard (wrong) 120 DPI Windows XP

Matthew Sanford
  • 1,069
  • 1
  • 13
  • 21

1 Answers1

1

You need make the dlalog's components aware of the DPI setting and calcualte the space and lay out needed. WPF does this automatically.

Here is an example on SO : How to control the font DPI in .NET WinForms app

Have a read of Writing High-DPI Win32 Applications

Community
  • 1
  • 1
Preet Sangha
  • 64,563
  • 18
  • 145
  • 216