Problems rendering controls when DPI > 96

C

Chris Joyce

We have a commercial .NET WinForms apps that is having problems on client
machines running greater than 96 DPI. I think there is a bug in Windows or
in the .NET framework with rendering controls at a higher DPI. For example,
if you configure your display setttings by choosing Display
Properties/Settings tab/Advanced/General and selecting 150% (144 DPI) the
view is total screwed up. I've narrowed it down to having controls on a
toolbar or Panel. If controls are on a dialog they render fine. If
controls are on a Panel object, text doesn't fit inside a pushbutton, text
is clipped and doesn't draw properly.

Can someone confirm this is a bug in Windows or the framework? Is there
anything I can do in my product to solve this?

Thanks,
Chris
 
W

Wiktor Zychla

We have a commercial .NET WinForms apps that is having problems on client
machines running greater than 96 DPI. I think there is a bug in Windows or
in the .NET framework with rendering controls at a higher DPI. For
example,

I can confirm this behavior in several our commercial apps. It is,
unfortunately, consistent with older (VB6, Delphi) apps - they were also
screwed on DPI > 96. I also do not have any simple and reliable solution to
this problem.

Wiktor Zychla
 
C

Chris Joyce

Thanks you Wiktor. It must be a bug in the Win API. I'll try the managed
newsgroups.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top