.Net Winform 应用程序与纵向显示器

发布于 2024-08-12 14:37:17 字数 276 浏览 5 评论 0原文

我注意到 .net winforms 应用程序存在不良行为。我有一个纵向旋转 90 度的宽屏显示器。当 .net winforms 应用程序在其上显示时,会出现该窗口,但它是空白的,白色的。我可以通过点击 ctrl-alt-delete 来修复窗口,当对话框出现时,点击取消,然后窗口将正确显示。我已在不同的显示器和显卡上复制了此内容。我在自制应用程序和 Windows 更新屏幕上都看到过这种情况。然而,它确实需要是宽屏显示器。旋转 90 度的“方形”显示器似乎没有这个问题。还有其他人观察到这一点吗?有解决办法吗?这是一个已知问题吗?

I have noticed an undesirable behavior with .net winforms applications. I have a wide screen monitor rotated 90 degrees to the portrait orientation. When .net winforms applications display on it, the window appears, but it is all blank, white. I can fix the window by hitting ctrl-alt-delete and when the dialog comes up, hitting cancel, then the window will display properly. I have duplicated this on different monitors and video cards. I have seen this both with a home grown app and with the Windows Update screen. It does need to be a wide screen monitor, however. A "square" monitor rotated 90 degrees doesn't seem to have this issue. Has anyone else observed this? Is there a fix for it? Is it a known issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

じ违心 2024-08-19 14:37:17

您的应用程序是在显示器旋转后启动的吗?因为我在这里对微软表示不满。我认为他们的字体都搞砸了,这就是原因。

Your application is being started after the monitor rotate? Because I'm calling fowl on Microsoft here. I think their font stuff is all messed up and thats why.

咿呀咿呀哟 2024-08-19 14:37:17

以前从未见过或注意到这一点,当我在电路城工作时,我曾经销售过这样的旋转屏幕。

无论如何,您尝试过运行 me.refresh() 吗? (或 this.Refresh();取决于语言)它只是使表单重绘。可能值得尝试将该行代码放入 formResize 事件处理程序中,看看它是否有帮助。

另外,我认为毫无疑问您的锚点设置正确。因此,我现在能想到的最后一件事是检查以确保表单控件的 .Location 属性在未显示时描述页面边界内的点。

哦,这也可能是操作系统的问题...我们是在谈论 XP 吗?维斯塔? Windows 7?或者只是所有微软产品?

Never seen nor noticed that before, and I used to sell rotating screens like that when I used to work for Circuit City.

Regardless, have you tried running me.refresh()? (or this.Refresh(); depending on the language) it simply makes the form redraw. Might be worth trying to put that line of code in the formResize event handler to see if it helps anything.

Also, I assume it goes without question that your anchors are set up correctly. So the last thing I can think of at the moment is checking to make sure that the .Location properties of the form controls describe a point within the page bounds when its not showing up.

Oh, this could also be an OS thing... are we talking XP? Vista? Windows 7? or just all Microsoft products?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文