ToolStripStatusLabel显示为黑盒ToolStripStatusLabel

2023-09-03 05:30:24 作者:太过炽热

我用StatusStrip中包含已ToolStripStatusLabel。操作系统 - Windows 7中,框架2.0。 通常都显示正常,但有时ToolStripStatusLabel看起来像黑盒子:

I use StatusStrip that contains ToolStripStatusLabel. OS - Windows 7, framework 2.0. Usually all displayed normal, but sometimes ToolStripStatusLabel looks like black box:

我读了Windows错误,但我怎么能解决这个问题?

I read that windows bug, but how I can fix it?

推荐答案

这是一个不起眼的错误,触发时显示在Windows工具栏重叠的StatusStrip中的形式。移动窗口离工具栏没有得到正确重新绘制的状态条上的ToolStripItems。你会发现在这个论坛帖子。有人支持它将来的修复弱的诺言,不知道如果这发生过。也许不是,如果你是Win7上运行此。

This is an obscure bug, triggered when you display the form with the Windows toolbar overlapping your StatusStrip. Moving the window away from the toolbar doesn't get the ToolStripItems on the status strip repainted properly. You'll find a bit of background in this forum post. There was a weak promise for a future fix for it, no idea if that ever happened. Probably not if you are running this on Win7.

您将需要更多地关注到窗口的位置,确保它的某些部分不消失的工具栏下方。一般来说东西,你会的总是的考虑,额外重要,只要这个错误没有得到解决。如果你不想明确的启动位置(你应该,用户往往喜欢把自己重新显示,他们去年把它移到一个窗口),然后简单地改变窗体的中StartPosition属性设置为中心屏幕。

You'll need to pay more attention to the position of the window, making sure that parts of it don't disappear underneath the toolbar. In general something you'd always consider, extra important as long as this bug doesn't get fixed. If you don't want to nail down the startup position (you ought to, users tend to like a window getting redisplayed where they last moved it) then simply change the form's StartPosition property to "CenterScreen".

相关推荐