Yes, this question has already been asked here at SO.
The problem is that the solution for this question was hiding the tooltip, and I really need to remove it, not hide it.
I am adding tooltips to several controls in my form using a couple of the functions I did.
There are two functions: one to set the tooltip to display on the MouseHover, and the other to display the tooltip at any time.
Only one is missing. One to remove any tooltip that has been set or displayed by a specific control.
Sort of
tooltip.remove(TextBox1);
Something that is simple when I only need to set the control where the tooltip is.
I tried a couple of things but didn't work.
Thanks.
EDIT:
This is how I use my code to add tooltips.
This was incorrectly indicated.
My code for installing and displaying prompts:
public class UserInterface { public void SetTooltip(Control Object, string Message, string Title, ToolTipIcon icon, Boolean isBallon, Boolean showAlways) { ToolTip Tip = new ToolTip(); Tip.UseAnimation = true; Tip.UseFading = true; Tip.ToolTipIcon = icon; Tip.IsBalloon = isBallon; Tip.ShowAlways = showAlways; Tip.ToolTipTitle = Title; Tip.SetToolTip(Object, Message); } public void ShowTooltip(Control Object, string Message, string Title, ToolTipIcon icon, Boolean isBallon, Boolean showAlways) { ToolTip Tip = new ToolTip(); Tip.UseAnimation = true; Tip.UseFading = true; Tip.ToolTipIcon = icon; Tip.IsBalloon = isBallon; Tip.ShowAlways = showAlways; Tip.ToolTipTitle = Title; Tip.Show(Message, Object); } }