如何解决形式和问题控制在4k显示器上调整大小 [英] How to solve form & controls resizing on 4k monitor

查看:203
本文介绍了如何解决形式和问题控制在4k显示器上调整大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想知道是否有可能在4k显示器上设置表格和控件,因为它是2k?

https://s17.postimg.org/6rastma8f/1920x1080-_Scale100.png

https://s17.postimg.org/jvgd6b9zz/ 3840x2160-_Scale200.png



非常感谢任何帮助!



我尝试了什么:



我试图降低显示设置的比例因子,但没有更改更好。

Hello to all,
I would like to know is it possible to set form and controls on 4k monitor as it is on 2k?
https://s17.postimg.org/6rastma8f/1920x1080-_Scale100.png
https://s17.postimg.org/jvgd6b9zz/3840x2160-_Scale200.png

Any help is very appreciated!

What I have tried:

I have tried to decrease scale factor on Display Settings but no changes to better.

推荐答案

这是一个Windows窗体。

以下是有效链接:

It's a Windows Form.
Here are valid links:
https://postimg.org/image/86cdicbbf/
https://postimg.org/image/ro70yafyz/


你可以尝试这个简单的技巧,它是C#,但不应该太难转换为VB:

You can try this simple trick, it's C# but should not be too hard to convert to VB:
// Scale form, AutoScaleMode.Font must be set for this to work.
this.Font = new Font(this.Font.Name, this.Font.Size + 2);

有关工作示例,请参阅: RoundedButton Control - 揭开DrawArc的神秘面纱 [ ^ ]

For a working example, see: RoundedButton Control - Demystifying DrawArc[^]


这篇关于如何解决形式和问题控制在4k显示器上调整大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆