title: Visual Studio .NET error: Form does not contain Dispose(bool) method
body: <p>Occasionally Visual Studio (2005, 2008, 2010) will lose its mind, and get confused by a WinForm:</p>
  
  <p><strong>SplashForm.cs:</strong></p>
  
  <pre><code>public partial class SplashForm : Form
  {
     ...
  </code></pre>
  
  <p><strong>SplashForm.Designer.cs:</strong></p>
  
  <pre><code>partial class SplashForm
  {
     ...
     protected override void Dispose(bool disposing)
     {
        if (disposing &amp;&amp; (components != null))
        {
           components.Dispose();
        }
        base.Dispose(disposing);
     }
     ...
  </code></pre>
  
  <p>It will complain:</p>
  
  <ul>
  <li><code>protected override void Dispose(bool disposing)</code><br>
  'Dispose(bool)' has no suitable method to override</li>
  <li><code>base.Dispose(disposing);</code><br>
  'object' does not contain a definition for 'Dispose`</li>
  </ul>
  
  <p>It's complaining about code that <strong>it</strong> generated. </p>
  
  <p>It's been too long (3 years) since i dealt with Visual Studio, so i've forgotten the trick to get Visual Studio's head out of its own assembly.</p>
  
  <p>What's the trick to get it going again?</p>