VS2010:底部带有褪色 StatusStrip 的 ToolStripContainer(Win7、Winform)

发布于 2024-11-17 02:23:46 字数 754 浏览 3 评论 0原文

我有一个使用 Visual Studio 2010 设计的 Windows 窗体。

它有一个 ToolStripContainer,底部放置有一个 StatusStrip 控件。

从 Visual Studio IDE 的设计器中,控件看起来很好:

Designer View

当我运行应用程序时,StatusStrip< /code> 底部的对象变得透明/不透明,并且很难阅读。这个项目只有大约两周的时间,我没有对任何控件的透明度或不透明度做任何事情。

可能是什么原因造成的?我该如何调试它?

Running View

编辑:

因此,我对我的当前项目进行了搜索 控件名称 (statusStrip1)。不幸的是,信息很少。我还在 ToolStripContainer 上进行了搜索,但它具有大致相同的信息 - 没有任何内容会导致显示透明。 StatusStrip 搜索结果如下所示:

Find Results

I have a Windows Form designed with Visual Studio 2010.

It has a ToolStripContainer with a StatusStrip control placed on the bottom.

From the Visual Studio IDE's Designer, the control looks fine:

Designer View

When I run the application, the StatusStrip object on the bottom becomes transparent/opaque, and is very hard to read. This project is only about 2 weeks old, and I have not done anything to monkey with the transparency or opacity of any of the controls.

What could be causing this? How would I debug it?

Running View

EDIT:

So, I did a search on my Current Project on the control's name (statusStrip1). Unfortunately, there is very little information. I also ran a search on the ToolStripContainer, but it had roughly the same information - nothing that should cause the display to be transparent. The StatusStrip search result is shown below:

Find Results

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

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

发布评论

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

评论(1

七禾 2024-11-24 02:23:46

你不会相信这一点。

我通过将WinFormTransparencyKey设置为Fushsia(它设置为Transparent)来解决这个问题。

You won't believe this.

I stopped this problem by setting the WinForm's TransparencyKey to Fushsia (it was set on Transparent).

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