gpt4 book ai didi

c# - 如何禁止在 ToolStripButton 上显示工具提示文本?

转载 作者:太空狗 更新时间:2023-10-29 20:04:36 29 4
gpt4 key购买 nike

我试图用图像显示自己的自定义工具提示,但 native 工具提示让一切变得糟糕。它仍然出现在不需要的地方。

我以这种方式创建 ToolStripButton:

ToolStripButton btn = new ToolStripButton();
btn.Text = name;
btn.ToolTipText = null; //I also tried string.Empty, but no luck

我还能做些什么来禁用它?

enter image description here

最佳答案

尝试以下设置:

btn.AutoToolTip = false;
btn.ToolTipText = string.empty;

关于 AutoToolTip property 的注释:

Set the AutoToolTip property to false to display custom ToolTipText on a ToolStripItem.

关于c# - 如何禁止在 ToolStripButton 上显示工具提示文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26148271/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com