In System.Windows.Forms:
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / XplatUIX11.cs
index cc5a39d2deea0699d8f5f79aff2e8dbaaff1df7b..ed614e6448beb690de14a6885c9f5825ef68f03d 100644 (file)
@@ -5408,7 +5408,18 @@ namespace System.Windows.Forms {
 #if NET_2_0
                internal override void SystrayBalloon(IntPtr handle, int timeout, string title, string text, ToolTipIcon icon)
                {
-                       // TODO:
+                       Control control = Control.FromHandle(handle);
+                       
+                       if (control == null)
+                               return;
+
+                       NotifyIcon.BalloonWindow form = new NotifyIcon.BalloonWindow (handle);
+                       form.Title = title;
+                       form.Text = text;
+                       form.Timeout = timeout;
+                       form.Show ();
+                       
+                       SendMessage(handle, Msg.WM_USER, IntPtr.Zero, (IntPtr) Msg.NIN_BALLOONSHOW);    
                }
 #endif