10

I trying to display own custom ToolTip with image, but the native ToolTip makes all bad. It still appears where it no needed.

I creating ToolStripButton in that way:

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

What else I can do to disable it?

enter image description here

Kosmo零
  • 4,001
  • 9
  • 45
  • 88

2 Answers2

13

Try the following setting:

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

The note on the AutoToolTip property:

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

LarsTech
  • 80,625
  • 14
  • 153
  • 225
3

You can also disable all tooltips just go to toolstrip properties and then select False

enter image description here

Ramgy Borja
  • 2,330
  • 2
  • 19
  • 40