RadMessageBox布局在Windows 7 Zoom上受到干扰

时间:2015-08-07 11:30:33

标签: winforms layout telerik controls messagebox

我正在使用Telerik Controls Q12013并且它在默认(100%)操作系统缩放时工作正常但我在Windows 7中面临布局问题RadMessageBox和125%操作系统缩放。

桌面[右键单击]>个性化>显示> 125%放大。

我在使用主题“VisualStudio2012Light”,“TelerikMetro”和“TelerikMetroBlue”时遇到问题,但它在默认Office2007主题中正常工作。我附上了一些图片,以便您更好地理解。

<code>RadMessageBox</code> is not displaying correctly

Windows 7 125% zoom

将帖子 设置MessageBox实例的最小宽度之后看起来像。 enter image description here 问题仍然存在。 :(

1 个答案:

答案 0 :(得分:0)

您可以在显示之前尝试设置消息框的最小尺寸:

   RadMessageBox.Instance.MinimumSize = new Size(300, 200);
   RadMessageBox.Show("test");

如果您对更多信息感兴趣,可以在此处阅读:WinForms Scaling at Large DPI Settings–Is It Even Possible?