Tool Tip Disappearing

I have a button for which I set a tooltip using the ToolTip class after finding out that there isn't a ToolTip property for button controls. Here is my code:

ToolTip procDescriptor = new ToolTip();

procDescriptor.SetToolTip(newProcessButton, "text");

procDescriptor.ToolTipTitle = processName;

procDescriptor.Active = true;

procDescriptor.ShowAlways = true;

The tool tip works fine until the button is clicked or hovered over for more than 5 seconds. After either of those things, the tooltip never reappears. What's the deal

-allen




Answer this question

Tool Tip Disappearing

  • bahadir

    Where is the code snippet located
  • ATony

    It's in my form class...but actually, I remedied the problem with a custom class that extends the ToolTip class in .net 2.0. It allows tool tips to reshow after "killing" themselves. However, I do find it weird that Microsoft didn't make it standard for the ToolTip class to create tool tips that reappear after the autopopdelay time runs out. Maybe i'm missing something...

    Anyway, here is the link to the thread that helped me out:

    http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=190224&SiteID=1



  • NewbieDude

    Even if you already click something else or hover out of the button
  • Xadja

    yes

  • Tool Tip Disappearing