views:

1172

answers:

4

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?

A: 

you can use a popup control for this (in WPF)

MSDN

jEROD
+3  A: 

use ToolTip

System.Windows.Forms.ToolTip myToolTip = new System.Windows.Forms.ToolTip();
myToolTip.IsBalloon = true;
myToolTip.Show("Some text", this.WhereToShow);
jonny
+4  A: 

Use the ToolTip class -- set IsBalloon = true to get the bubble effect.

Tim Robinson
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
I hate it when people vote down an answer with no explanation :P
Nathan Ridley
Perfect as I was looking for a solution and am already using a NotifyIcon. Thanks!
neildeadman