title: How do I trigger something whenever the WindowState changes in C#?
body: <p>So I want to instantly, as this portion of the program relies on speed, trigger a function when the windowstate is changed in my main form. I need it to be something like this:</p>
  
  <pre><code>private void goButton_Click(object sender, EventArgs e)
  {
     //Code
  }
  </code></pre>
  
  <p>I checked through the events tab of the form, I have no WindowStateChanged, etc. How do I do this?</p>
  
  <p>The form will be resized a lot, so checking when the size changes won't work.</p>