if (this.WindowState == FormWindowState.Minimized == true) { notifyIcon1.Visible = true; this.WindowState = FormWindowState.Minimized; this.ShowInTaskbar = false; }
if (this.WindowState == FormWindowState.Minimized == true && Options.checkBox1.Checked == true) { notifyIcon1.Visible = true; this.WindowState = FormWindowState.Minimized; this.ShowInTaskbar = false; }