Search code examples
c#taskbarpopup-balloons

Balloon tooltip with close button - C#


How do I create a ballon tool tip with a close button.

I can show a tooltip:

TaskbarIcon.ShowBalloonTip(10000);

but I can't do the opposite:

TaskbarIcon.CloseBalloonTip();

Or even a way to show a close box on a Balloon Tip.

I saw this question posted on another site but with no (free) answer.

Thanks in advance


Solution

  • I was able to find a simple answer. Instead of using:

    TaskbarIcon.ShowBalloonTip(10000); 
    

    I could use the second form of this function:

    TaskbarIcon.ShowBalloonTip(10000,"Title","Message",ToolTipIcon.None); 
    

    This actually adds a close box to the balloon tip!