title: The variable 'variable_name' is either undeclared or was never assigned
body: <p>I have a question related to the error on the title. Im working with c# and Visual Studio 2010.</p>
  
  <p>I have a form declared as "public class FormularioGeneral : Form", which is the base for the rest of the forms in my application. When i try to access the Designer View i get this error several times, as you can see in the image:</p>
  
  <p><img src="https://i.stack.imgur.com/z7AOH.png" alt="Sample of errors">
  All the errors references lines inside the InitializeComponent method, where the value is assigned to a property like this one:</p>
  
  <pre><code>[...]            
  this.PanelMargenIzquierdoCapaBase.BackColor = m_ColorCapaBase;
  [...]
  </code></pre>
  
  <p>But all the variables are declared in the same class as read-only properties and all of them are assigned inside a method which is called in the constructor.</p>
  
  <p>Declaration of properties:</p>
  
  <pre><code>    protected Color m_VariableName;
      public Color VariableName
      {
          get { return m_VariableName; }
          set { }
      }
  </code></pre>
  
  <p>Constructor code:</p>
  
  <pre><code>    public FormularioGeneral()
      {
          ConfigurarUI();
          AccionesConstructor();
          InitializeComponent();
          PostInicializacionComponentes();
          EstablecerIcono();
          InicializarLocalizacionFormulario();
      }
  </code></pre>
  
  <p>ConfigurarUI method:</p>
  
  <pre><code>public virtual void ConfigurarUI()
  {
          [...]
  
          m_AltoBordeSuperiorCapaBase = 30;
          m_AltoBordeInferiorCapaBase = 7;
          m_AnchoBordesLateralesCapaBase = 7;
  
          m_ColorCapaBase = Color.FromArgb(50, 100, 150);
          m_ColorTextoCapaBase = Color.White;
          m_ColorTextoBotonAplicacion = Color.Black;
  
          m_FuenteTextoIzquierdoCapaBase = new System.Drawing.Font("Verdana", 11.0F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
          m_FuenteTextoCentroCapaBase = new System.Drawing.Font("Verdana", 14.0F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
          [...]
  }
  </code></pre>
  
  <p>So, as far as i know, all the variable which are giving the errors are correctly declared and have a value assigned before the InitilizeComponent function is called.</p>
  
  <p>Im stuck at this point and dont know what to do to solve the problem. Hope some of you can help me with this issue.</p>