saman
saman

Reputation: 455

How to find tooltip control

How do I find a tooltip control for any control in Winform with C#?

Upvotes: 0

Views: 1661

Answers (1)

Wim Haanstra
Wim Haanstra

Reputation: 5998

Did you try to use the following :

string text = toolTip1.GetToolTip(yourControl);

This gives you the text on the tooltip for that control.

You can set the text of a certain tooltip for your control like this:

toolTip2.SetToolTip(yourControl, "My tooltip text");

Upvotes: 2

Related Questions