Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,

I have a Winform on which a image is placed. Designed on Win 7 with DPI at 100%.

When the same Winform is displayed after changing the DPI to 125% or higher, I observe that the Image is displaced on the Winform.

The Winform was possibly Auto scaled due to DPI changes but the Image (which is embedded in the Resx file) wont get scaled.

Currently, The winform's AutoScaleMode is set to "Font" and the "AutoSizeMode" is set to "GrowOnly". I tried toggling these setting with no fruits.

Thus, How would I get the Image properly on my Winform in Higher DPI settings? OR How can I make this Winform remain unaffected from DPI changes ?

Please advise.

Any help is greatly appreciated.
Posted

1 solution

Change your Form's AutoScaleMode to Dpi.

/ravi
 
Share this answer
 
Comments
JamesHadleyChase 17-Aug-15 13:14pm    
Thank you. I tried that to see no difference.
Ravi Bhavnani 17-Aug-15 13:58pm    
Odd - that works for me. :(

/ravi

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900