title: The variable _ is either undeclared or was never assigned error
body: <p>I'm using Visual Studio 2017 and I've encountered this error everytime I try to open the <code>NewComponentForm.cs[Design]</code>.</p>
  
  <p>I've looked up this error and everyone says that you should clean your solution and rebuild and restart the VS application. In my case it didn't help at all.</p>
  
  <p>So this is some legacy code that I need to add functionality, it works by having like 5 Views in a form and just changing the <code>Visible</code> attribute with the help of some buttons, the error is:</p>
  
  <blockquote>
    <p>The variable 'LoadRemoteDescriptorsView' is either undeclared or was never assigned. </p>
  </blockquote>
  
  <p>It seems that <code>LoadRemoteDescriptorsView</code> view was added manually (by code and not by the designer) to the component, because everytime I add a button or some other control the code for <code>LoadRemoteDescriptorsView</code> dissapears. </p>
  
  <p>This is a snippet of the code. NOTE: the program runs fine even if I select 'Ignore and Continue' when the error pops.</p>
  
  <pre><code>partial class NewComponentForm
  {
      /// &lt;summary&gt;
      /// Required designer variable.
      /// &lt;/summary&gt;
      private System.ComponentModel.IContainer components = null;
  
      /// &lt;summary&gt;
      /// Clean up any resources being used.
      /// &lt;/summary&gt;
      /// &lt;param name="disposing"&gt;true if managed resources should be disposed; otherwise, false.&lt;/param&gt;
      protected override void Dispose(bool disposing)
      {
          if (disposing &amp;&amp; (components != null))
          {
              components.Dispose();
          }
          base.Dispose(disposing);
      }
  
      #region Windows Form Designer generated code
  
      /// &lt;summary&gt;
      /// Required method for Designer support - do not modify
      /// the contents of this method with the code editor.
      /// &lt;/summary&gt;
      private void InitializeComponent()
      {
          this.PlatformButton = new System.Windows.Forms.Button();
          this.panel1 = new System.Windows.Forms.Panel();
          this.LoadRemoteDescriptorsButton = new System.Windows.Forms.Button();
          this.EditDeviceAmplifierButton = new System.Windows.Forms.Button();
          this.AddDeviceToAmplifierButton = new System.Windows.Forms.Button();
          this.ComponentPanel = new System.Windows.Forms.Panel();
          this.LoadRemoteDescriptorsView = new ExamplePlugins.DeviceMapper.View.LoadRemoteDescriptors();
          //LoadRemoteDescriptorsView = new LoadRemoteDescriptors();
          this.EditAmplifierDeviceOptionsView = new ExamplePlugins.DeviceMapper.View.EditAmplifierDeviceOptions();
          this.MainAcceptCancelButtonsPanel = new System.Windows.Forms.Panel();
          this.AcceptButton = new System.Windows.Forms.Button();
          this.CancelButton = new System.Windows.Forms.Button();
          this.NewAmplifierView = new ExamplePlugins.DeviceMapper.View.NewAmplifier();
          this.AddDeviceToAmplifierView = new ExamplePlugins.DeviceMapper.View.AddDeviceToAmplifier();
          this.NewDeviceView = new ExamplePlugins.DeviceMapper.View.NewDevice();
          this.DeviceButton = new System.Windows.Forms.Button();
          this.btnRegSettings = new System.Windows.Forms.Button();
          this.panel1.SuspendLayout();
          this.ComponentPanel.SuspendLayout();
          this.MainAcceptCancelButtonsPanel.SuspendLayout();
          this.SuspendLayout();
          /*****/
          /*****/SOME OTHER CODE HERE
          /*****/
          /*****/
          // 
          // ComponentPanel
          // 
          this.ComponentPanel.Controls.Add(this.LoadRemoteDescriptorsView); //Added
          this.ComponentPanel.Controls.Add(this.EditAmplifierDeviceOptionsView);
          this.ComponentPanel.Controls.Add(this.MainAcceptCancelButtonsPanel);
          this.ComponentPanel.Controls.Add(this.NewAmplifierView);
          this.ComponentPanel.Controls.Add(this.AddDeviceToAmplifierView);
          this.ComponentPanel.Controls.Add(this.NewDeviceView);
          this.ComponentPanel.Location = new System.Drawing.Point(116, 2);
          this.ComponentPanel.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
          this.ComponentPanel.Name = "ComponentPanel";
          this.ComponentPanel.Size = new System.Drawing.Size(803, 515);
          this.ComponentPanel.TabIndex = 4;
          //*******************************************************************************//
          // 
          // LoadRemoteDescriptorsView
          // 
          this.LoadRemoteDescriptorsView.Location = new System.Drawing.Point(19, 0);
          this.LoadRemoteDescriptorsView.Name = "LoadRemoteDescriptorsView";
          this.LoadRemoteDescriptorsView.Size = new System.Drawing.Size(670, 318);
          this.LoadRemoteDescriptorsView.TabIndex = 8;
          this.LoadRemoteDescriptorsView.Visible = false;
          //*******************************************************************************//
          // 
  </code></pre>
  
  <p><code>LoadRemoteDescriptorsView</code> is declared early in the <code>InitializeComponent()</code> function</p>
  
  <pre><code>this.LoadRemoteDescriptorsView = new ExamplePlugins.DeviceMapper.View.LoadRemoteDescriptors();
  </code></pre>
  
  <p>The error points to the line when we are adding that view to the component panel</p>
  
  <pre><code>this.ComponentPanel.Controls.Add(this.LoadRemoteDescriptorsView); //Added
  </code></pre>
  
  <p>What am I missing out here?</p>