title: Visual Studio 2008 Winform designer fails to load Form which inherits from generic class
body: <p>i have a winforms project, and i created a class on assembly <strong>A</strong> that inherits from <code>System.Windows.Forms.Form</code> to serve as a base class for various forms on my project, the base class is something like:</p>
  
  <pre><code>public partial class DataForm&lt;T&gt; : Form where T : class
  {
  
      T currentRecord;
  
      protected T CurrentRecord
      {
          get
          {
              return currentRecord;
          }
          set
          {
              currentRecord = value;
              CurrentRecordChanged();
          }
      }
  }
  </code></pre>
  
  <p>Now, when i create a form on assembly <strong>B</strong> that inherits from my DataForm the designer won't load, but if i compile it the app runs fine.</p>
  
  <p>The form looks like:</p>
  
  <pre><code>public partial class SomeTableWindow : DataForm&lt;SomeTable&gt;
  {
      public SomeTableWindow ()
      {
          InitializeComponent();
      }
  }
  </code></pre>
  
  <p>The error I'm getting is:</p>
  
  <pre><code>The designer could not be shown for this file because none of the classes within it can be designed. 
  The designer inspected the following classes in the file: CultivosWindow --- The base
  class 'TripleH.Erp.Controls.DataForm' could not be loaded. Ensure the assembly has 
  been referenced and that all projects have been built.    
  
  
  Instances of this error (1)  
  
  1.   Hide Call Stack 
  
  at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager manager)
  at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
  at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
  at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)  
  </code></pre>
  
  <p>Is this a bug on the designer?, Am I doing something wrong? Is there some workaround this?</p>
  
  <p>Thank you for your help</p>