OSDN Git Service

RAD-497 minimize to tray
authorLatif Khalifa <latifer@streamgrid.net>
Fri, 12 Jun 2015 19:08:22 +0000 (21:08 +0200)
committerLatif Khalifa <latifer@streamgrid.net>
Fri, 12 Jun 2015 19:08:22 +0000 (21:08 +0200)
Radegast/GUI/Dialogs/MainForm.cs

index ba24bf2..d4be299 100644 (file)
@@ -1485,7 +1485,8 @@ namespace Radegast
                 }
                 ShowInTaskbar = false;
                 trayIcon.Visible = true;
-                FormBorderStyle = FormBorderStyle.SizableToolWindow;
+                trayIcon.BalloonTipText = "Radegast is runnig in the background";
+                trayIcon.ShowBalloonTip(2000);
             }
         }
 
@@ -1494,7 +1495,6 @@ namespace Radegast
             WindowState = FormWindowState.Normal;
             ShowInTaskbar = true;
             trayIcon.Visible = false;
-            FormBorderStyle = FormBorderStyle.Sizable;
         }
 
         private void ctxTreyRestore_Click(object sender, EventArgs e)