Beispiel #1
0
        private void Form1_FormClosing(object sender, FormClosingEventArgs e)
        {
            e.Cancel = true;

            NotifyIconGD.Visible = true;
            NotifyIconGD.ShowBalloonTip(500);
            this.ShowInTaskbar = false;
            this.Hide();
        }
Beispiel #2
0
        private void Form1_Resize(object sender, EventArgs e)
        {
            NotifyIconGD.BalloonTipTitle = "Gamer Desk Desktop App";
            NotifyIconGD.BalloonTipText  = "GD Launcher Running in the Background";

            if (FormWindowState.Minimized == this.WindowState)
            {
                NotifyIconGD.Visible = true;
                NotifyIconGD.ShowBalloonTip(500);
                this.ShowInTaskbar = false;
                this.Hide();
            }
            //else if (FormWindowState.Normal == this.WindowState)
            //{
            //    NotifyIconGD.Visible = false;
            //}
        }