title: casting new System.Windows.Forms.Control object to System.Windows.Forms.Textbox
body: <p>i get an InvalidArgumentException while casting Control to System.Windows.Forms.Textbox:</p>
  
  <blockquote>
    <p>Unable to cast object of type 'System.Windows.Forms.Control' to type 'System.Windows.Forms.TextBox'.</p>
  </blockquote>
  
  <pre><code>System.Windows.Forms.Control control = new System.Windows.Forms.Control();
  control.Width = currentField.Width;
  
  //here comes the error
  ((System.Windows.Forms.TextBox)control).Text = currentField.Name;
  </code></pre>
  
  <p>I am doing this, because I have different Controls (Textbox, MaskedTextbox, Datetimepicker...), which will dynamically be added to a panel and have the same basic properties (Size, Location... -> Control)</p>
  
  <p>Why isn't the cast possible?</p>