title: C# Designer error
body: <p>I'm a newbie to C# so please excuse me if I ask dumb questions...</p>
  
  <p>Here is my problem :</p>
  
  <ul>
  <li>I have a class "ProtocolTabPage" that inherits from "TabPage".</li>
  <li>I have a "ControlPanel" that inherits from "Panel".</li>
  <li>I have a ControlPanel instanced by my ProtocolTabPage.</li>
  <li>Both my classes are in the namespace "AutoTestProtocols.Interface".</li>
  </ul>
  
  <p>In the ProtocolTabPage[Design], I have the following errors :</p>
  
  <p>"The variable 'ProtocolPanel' is either undeclared or was never assigned.</p>
  
  <p>at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink)
  at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
  at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
  at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)"</p>
  
  <p>Though, in my ProtocolTabPage.Designer, I have</p>
  
  <pre><code>[...]
  this.ProtocolPanel = new AutoTestProtocols.Interface.ControlPanel();
  [...]
  this.splitContainer1.Panel2.Controls.Add(this.ProtocolPanel);
  [...]
  this.ProtocolPanel.AutoScroll = true;
  this.ProtocolPanel.Dock = System.Windows.Forms.DockStyle.Fill;
  this.ProtocolPanel.Location = new System.Drawing.Point(0, 0);
  this.ProtocolPanel.Name = "ProtocolPanel";
  this.ProtocolPanel.Size = new System.Drawing.Size(696, 700);
  this.ProtocolPanel.TabIndex = 0;
  [...]
  private AutoTestProtocols.Interface.ControlPanel ProtocolPanel;"
  </code></pre>
  
  <p>What's wrong ?</p>