title: Winforms User Control MissingMethodException
body: <p>So essentially, I have a custom user control called ExcelDisplay. I try to drag it over in visual studio from the toolbox into my webform in the same project and I get a missing method exception. At one time the constructor was parameterized, but I changed it after deciding it was a bad design idea.</p>
  
  <p>It looks like it is saying the constructor is missing, but its obviously there. </p>
  
  <p>My winform to house the control is empty with the exception of the autogenerated code visual studio puts there.</p>
  
  <p>The code for my ExcelDisplay's constructor looks like this.</p>
  
  <pre><code>    namespace STS_Console.UserControls
      {
          public partial class ExcelDisplay : UserControl
          {
  
              public ExcelDisplay()
              {
                  InitializeComponent();
  
                  DataDisplay.Columns[0].HeaderText = "Data";
                  //debug
                  string x = DataDisplay.Columns[0].GetType().ToString();
                  x.ToString();
              }
  </code></pre>
  
  <p>The error message is this.
  <img src="https://i.stack.imgur.com/IIWjG.jpg" alt="error message"></p>
  
  <p>So that error occurs when do I drag and drop in the designer like this
  <img src="https://i.stack.imgur.com/fhLPD.jpg" alt=" Drag and drop"></p>
  
  <p>Anyway so that is my problem. I am not sure what is causing it or how to fix it. I would be glad to post additional code upon request.</p>