Programmatically show tooltip in winforms application

前端 未结 6 1510
[愿得一人]
[愿得一人] 2020-12-09 15:26

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).

6条回答
  •  悲&欢浪女
    2020-12-09 16:12

    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.

提交回复
热议问题