在.net 4.6框架中绘制问题 [英] Drawing issues in .net 4.6 framework

查看:146
本文介绍了在.net 4.6框架中绘制问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我有自定义的消息框,它来自windows.form类(.net 4.0框架).Textbox用于在消息框中显示文本。

现在我已经更改了框架4.0到4.6

请帮忙。

解决方案

您的问题是由于DPI支持率高。 .net 4.5.2引入了对Windows Forms控件的高DPI支持,.net 4.6扩展了该功能。要克服此问题,请使您的控件具有高DPI感知能力。这可能会对您有所帮助: http://stackoverflow.com/questions/22735174/how-to-write-winforms-code-that-auto-scales-to-system-font-and-dpi-settings [ ^ ]

In my application i have customized message box which is derived from windows.form class(.net 4.0 framework).Textbox is used to display text in message box.
Now i have changed framework from 4.0 to 4.6
Problem:After changing framework 4.0 to 4.6 the text in message box cuts.
Please help.

解决方案

Your problem is due to high DPI support. .net 4.5.2 introduced High DPI support for Windows Forms controls and .net 4.6 expanded that functionality. To overcome this issue make your control high DPI aware. This might help you: http://stackoverflow.com/questions/22735174/how-to-write-winforms-code-that-auto-scales-to-system-font-and-dpi-settings[^]


这篇关于在.net 4.6框架中绘制问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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