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

2 Answers 2

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Even that doesn't work for me, it still shows a tooltip with the same text as the button text
@PandaWood You would have to document that in a question with repeatable code.
3

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

enter image description here

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.