I'm developing an user control in .NET 3.5. As reaction to some event, I would like to show a simple bubble containing a short text on this control, similar to the well-known system tray notification bubbles. I'm sure this is a very easy task, could you give me a quick hint?
+4
A:
Use the ToolTip
class -- set IsBalloon
= true
to get the bubble effect.
Tim Robinson
2009-04-30 11:35:56
A:
Drop a NotifyIcon control onto your form, then call the ShowBalloonTip method of your control.
System.Windows.Forms.NotifyIcon myIcon; // generated by the designer
// more designer code, then your code:
myIcon.ShowBalloonTip(3000, "My Title", "My Text", someIconReference);
Nathan Ridley
2009-04-30 11:37:31
I hate it when people vote down an answer with no explanation :P
Nathan Ridley
2009-06-22 08:10:14
Perfect as I was looking for a solution and am already using a NotifyIcon. Thanks!
neildeadman
2009-06-25 15:59:38