private void Form1_Resize(object sender, EventArgs e) { if (this.WindowState == FormWindowState.Minimized) { notifyIcon1.Visible = true; this.Hide(); } else if (this.WindowState == FormWindowState.Normal) { notifyIcon1.Visible = false; } } private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e) { this.Show(); }
this.WindowState = FormWindowState.Normal;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)