DPI Awareness of Nevron components


https://www.nevron.com/Forum/Topic8775.aspx
Print Topic | Close Window

By Tobias Breuer - 10 Years Ago
Hi all,

I'm currently struggling with the DPI awareness of Nevron components. For WinForms applications one can set the process to be DPI aware which leads to the fact, that controls are painted correctly regardless if the user has a DPI Setting of 100, 120, 150 or other values. This can be achieved using the following native method via PInvoke:

[DllImport("user32.dll")]
private static extern bool SetProcessDPIAware();

Unfortunately this leads to the fact, that the WinForms components are drawn correctly, the Nevron components on the other side are obviously not affected by this. and are streched and becoming very large. Is there any property that I can set on these controls or some other approach to make the Nevron components behave in the same way as the WinForms controls do?

Thanks and best regards,

Tobias