Removing a tooltip from a control

How can one remove a toolrip from a control There are occasions when, having done a SetToolTip, I now don't want the tip to appear. There doesn't seems to be a RemoveToolTip(Control) functionality.

Answer this question

Removing a tooltip from a control

  • Hockey Nut

    Hi,

    You can remove the Tooltip using the same method and set the text value to null or empty string. Code snippet showing both options below:


    toolTip1.SetToolTip(textBox1, "");

    toolTip1.SetToolTip(textBox1, null);


     



    Regards,
    Vikram



  • sweetyk18

    Thanks Vikram - worked a treat. I was worried that it would show an empty box, in the over-literal way that computers tend to work. Now, let's hope that this gets into the documentation.


  • Removing a tooltip from a control