Profile Picture

DPI Awareness of Nevron components

Posted By Tobias Breuer 10 Years Ago
Author
Message
Tobias Breuer
Problem Posted 10 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 9 Years Ago
Posts: 5, Visits: 11
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



Similar Topics


Reading This Topic