将 ToolStripSplitButton.DropDownButtonWidth 设置为 0

发布于 2024-09-24 10:18:19 字数 254 浏览 0 评论 0原文

我想在我的 StatusStrip 中仅使用 ToolStripSplitButton 作为按钮(无下拉菜单)。

因此,我不想显示小箭头,但我不能这样做。

尝试通过将 ToolStripSplitButton.DropDownButtonWidth 设置为 0 来实现此目的,它在 Windows 7 中成功运行,但在 Windows XP 中失败。

如何去掉小箭头?

I want to use ToolStripSplitButton as a button only (no drop down menu) in my StatusStrip.

For this reason i want to not display the little arrow, but i can't do this.

Tried do this with setting ToolStripSplitButton.DropDownButtonWidth to 0, and it works successfull in windows 7 but not in windows xp.

how to get rid of the little arrow?

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

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

发布评论

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

评论(1

乱了心跳 2024-10-01 10:18:19

使用 ToolStripDropDownButton 而不是 ToolStripSplitButton。 ToolStripDropDownButton 有一个属性 ShowDropDownArrow,它允许您隐藏下拉箭头。

Use the ToolStripDropDownButton instead of the ToolStripSplitButton. The ToolStripDropDownButton has a property ShowDropDownArrow which will allow you to hide the drop down arrow.

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