How to disable ToolTip text display on top of ToolStripButton?

I'm trying to display my own custom tooltip with an image, but the built-in tooltip does it all badly. He still appears where he is not needed.

I create a ToolStripButton this way:

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

What else can I do to disable it?

enter image description here

+7
source share
2 answers

Try the following settings:

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

Note on the AutoToolTip property :

Set the AutoToolTip property to false to display your own ToolTipText on ToolStripItem.

+11
source

You can also disable all tooltips, just go to the toolbar properties and select " False".

enter image description here

0
source

Source: https://habr.com/ru/post/1203816/


All Articles