Question

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

Was it helpful?

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!

OTHER TIPS

You might find this interesting:

http://www.tooltips.net/

This question has a helpful answer on closing the balloon.

Unless you need to hook an event on close, you don't need a button on the balloon, and even if you do, you can hook the balloon's click event to accomplish the same thing.

There are flags that allow you to do things like put an X in the upper right hand corner of the balloon so that the user can dismiss it. See here for more info:

http://msdn.microsoft.com/en-us/magazine/cc188923.aspx

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top