© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
1 reply
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;
        }
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?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Minimizing WPF app to system tray?
C#CC# / help
3y ago
Starting Project with Windows and Minimizing to System Tray
C#CC# / help
2y ago
❔ minimize to tray
C#CC# / help
3y ago
✅ Minimize to tray
C#CC# / help
3y ago