title: Minimize to system tray
body: <p>i was following the instruction on <a href="https://stackoverflow.com/questions/7625421/minimize-app-to-system-tray">page</a></p>
  
  <p>but then, there's no icon attached for the application, so after the form is hidden, i cannot reshow the form, since there's no icon on the system tray,</p>
  
  <p>how do i resolve this ?</p>
  
  <p>here is my code</p>
  
  <pre><code> private void Form1_Resize(object sender, EventArgs e)
      {
          if (FormWindowState.Minimized == this.WindowState)
          {
              notifyIcon1.Visible = true;
              cmd.cetakSukses(ident.judul_App + " Diperkecil ke dalam System Tray");
              notifyIcon1.BalloonTipText = ident.judul_App + " Diperkecil ke dalam System Tray";
              notifyIcon1.BalloonTipTitle = ident.judul_App;
              notifyIcon1.BalloonTipIcon = ToolTipIcon.Error;
              notifyIcon1.ShowBalloonTip(500);                
              this.Hide();
          }
          else
          {                
  
          }
      }
  </code></pre>
  
  <p>update :</p>
  
  <p>i have attached the icon, and the icon still not showing on the system tray</p>
  
  <p><img src="https://i.stack.imgur.com/LXWEx.png" alt="enter image description here"></p>
  
  <p>and i figured how to make the form showing, i need to add the following code to <code>notifyicon</code></p>
  
  <pre><code> private void notifyIcon1_DoubleClick(object sender, EventArgs e)
      {
          this.Show();
      }
  </code></pre>