Michael

Michael

  • NA
  • 20
  • 0

System Tray

Jan 24 2008 2:14 PM
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;
            }