Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically show tooltip in winforms application

Tags:

winforms

How can I programatically cause a control's tooltip to show in a Winforms app without needing the mouse to hover over the control? (P/Invoke is ok if necessary).

like image 385
Jason Diller Avatar asked Sep 15 '08 14:09

Jason Diller


1 Answers

If you are using the Tooltip control on the form, you can do it like this:

ToolTip1.Show("Text to display", Control)

The MSDN documentation for the ToolTip control's "Show" method has all the different variations on this and how to use them.

like image 82
Keithius Avatar answered Oct 06 '22 12:10

Keithius