c# - 将 ToolStripSplitButton.DropDown 按钮宽度设置为 0

标签 c# .net winforms statusbar toolstrip

我只想将 ToolStripSplitButton 用作我的 StatusStrip 中的按钮(没有下拉菜单)。

因此我不想显示小箭头,但我做不到。

尝试将 ToolStripSplitButton.DropDownButtonWidth 设置为 0,它在 windows 7 中成功运行,但在 windows xp 中失败。

如何去除小箭头?

最佳答案

使用 ToolStripDropDownButton 而不是 ToolStripSplitButton。 ToolStripDropDownButton 具有 ShowDropDownArrow 属性,可让您隐藏下拉箭头。

关于c# - 将 ToolStripSplitButton.DropDown 按钮宽度设置为 0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3731629/

相关文章:

javascript - 在 highcharts 中显示 .Net Core Web API 响应

.net - 在 SQL Server 中使用 C# 汇编

c# - C# 如何在 Foreach 循环中遍历表单控件

c# - 是否可以让 Label.Image 出现在填充区域内?

c# - Windows 控件可以与 WPF 一起使用吗?

c# - sql c# 删除 div id 的语法

c# - 我可以声明一个在一行中使用并在行后立即丢弃的变量吗?

c# - 使用 dropdownlist 将新数据添加到多个表

c# - .Net 流 : Returning vs Providing

c# - 如何在winform应用程序中运行html5容器?