C#C
C#3y ago
Apex

✅ tray system

cs        #region Background
        private void frmSystemTray_Load(object sender, EventArgs e)
        {
            notifyIcon1.BalloonTipText = "Application Minimized.";
            notifyIcon1.BalloonTipTitle = "File Backup System";
            notifyIcon1.ShowBalloonTip(1000);
        }

        private void frmSystemTray_Resize(object sender, EventArgs e)
        {
            if (this.WindowState == FormWindowState.Minimized)
            {
                // ShowInTaskbar = false;
                Hide();
                notifyIcon1.Visible = true;
                notifyIcon1.ShowBalloonTip(1000);
            }
        }
        private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            MessageBox.Show("NotifyIcon Double Clicked!");
            Show();
            ShowInTaskbar = true;
            notifyIcon1.Visible = false;
            WindowState = FormWindowState.Normal;
        }

Any idea why it wont open the form afteri put it into system tray?
Was this page helpful?