private void Form1_Resize(object sender, EventArgs e) { if (toolMinTray.Checked && FormWindowState.Minimized == this.WindowState) this.Hide(); }