0
Reply

System Tray

Michael

Michael

Jan 24 2008 2:14 PM
2.1k
I have a program I would like to minimize to the system tray. I have it were it shows and icon there when my program runs but when I minimize the program it doesnt disapire from the task bar. This is the code I use to try to make it disapire but doesnt seem to be working. Oh and its in the form resize function.
            if (FormWindowState.Minimized == WindowState)
            {
                this.Visible = false;
                this.ShowInTaskbar = false;
            }