title: Visual Studio WinForms designer does not instantiate object
body: <p>I created a class derived from System.Windows.Forms.ContextMenuStrip class, not as a user control, just a plain .cs class with a constructor and one event handler.</p>
  
  <p>When I drag this class from the Toolbox onto the designer, it creates a private member for it and a couple of properties, but does not instantiate an object.</p>
  
  <p>Thus, at runtime I get "Object reference not set to an instance of an object.", because the designer never generates the line:</p>
  
  <p>this.searchGridContextMenu1 = new SearchGridContextMenu();</p>
  
  <p>inside InitializeComponent.</p>
  
  <p>It used to generate this line, as a matter of fact, I keep putting it back in from my Vault repository, but the designer just "eats it" again.</p>
  
  <p>Update: I now tried creating a User Control using the same class and it has the same problem just doing that.</p>