title: Why do I keep getting a "type is not defined" in my VB.Net application at compile time?
body: <p>I have a vb.Net application where I've incorporated a control that was custom developed by somebody else.  I've incorporated the control into my application but I periodically get the message "Type 'myMapControl.myMapControl' is not defined" when I compile.  The error is in the Form1.Designer.vb file on the following lines (my form name is "Form1" in this case.)</p>
  
  <pre><code>   Me.myMapControl1= New myMapControl.myMapControl
     Me.myOthermapControl = New myMapControl.myMapControl
  </code></pre>
  
  <p>If I add a "Global" qualifier:</p>
  
  <pre><code>   Me.myMapControl1= New Global.myMapControl.myMapControl
     Me.myOthermapControl = New Global.myMapControl.myMapControl
  </code></pre>
  
  <p>then I can compile and everything works fine for a while.  I can compile, change, re-compile, etc.  However eventually, the "Global" qualifier disappears and I have to re-add it.  What am I doing wrong.  I've made sure that the control's dll was added as a reference.  </p>