title: How do I hide a windows form but keep a Taskbar entry for it?
body: <p>I'm writing a C# Windows Forms application. How do I hide the form while keeping it active in the <a href="http://en.wikipedia.org/wiki/Taskbar#Microsoft_Windows" rel="nofollow noreferrer">Windows taskbar</a>?</p>
  
  <p>I've tried setting the <code>Visible</code> property to false and using the <code>Hide()</code> method, but they hide both the form and the taskbar entry.</p>
  
  <p>I've also tried minimizing the application permanently by setting <code>WindowState</code> to <code>FormWindowState.Minimized</code>  in the <code>OnLoad</code> and <code>onResize</code> events.  This works pretty well, but when you left-click on the icon in the taskbar, you get a quick flash of the application before it resizes (which is kind of annoying).</p>
  
  <p>Sorry if this question has come up before, but every question that I've seen so far invovles hiding the taskbar completely, or removing the application as a taskbar item (to be replaced by a <code>NotifyIcon</code>).</p>
  
  <p>How do I fix this problem?  </p>