title: C# Minimize Whole Application
body: <p>Is there a possible way in Visual Studio that you are able to minimize your whole application? I tried this:</p>
  
  <pre><code>private void button4_Click_2(object sender, EventArgs e)
  {
      Application.WindowState = FormWindowState.Minimized;
      this.WindowState = FormWindowState.Minimized;
  }
  </code></pre>
  
  <p>There is an error which is <code>'System.Windows.Forms.Application' does not contain a definition for 'WindowState'</code> which means (if you didn't already know) that the application as a whole doesn't have a window factor (this I already knew) but is there a way to minimize all the windows in an application all at once? </p>