vb.net images with Windows medium font
We have a vb.net desktop application that uses a number of gra开发者_Python百科phical images. All is well when the Windows Display is set to the default small font; however, when the display is set to the medium (125%) font, the graphical images don't display properly. We can accommodate the changes to windows sizes and text boxes, etc using autoscale and autosize; however, this doesn't help with images. Is there any way to overcome this issue?
Thanks.
The controls and maybe the form containing the images are probably changing sizes when the font size changes. Make sure the size of the control containing the image does not change when the font size changes.
On the windows form set the following properties:
autosize = true
autoscalemode = dpi
精彩评论