title: Object does not match target type
body: <p>I have a <code>TableLayoutPanel</code> with a grid of <code>PictureBox</code> controls within it.  I'm trying to find a shortcut way to change them all to Label controls instead of manually deleting each one and placing new controls in each cell. </p>
  
  <p>I thought I could go into the designer code and find/replace PictureBox with Label, but now I get an </p>
  
  <blockquote>
    <p>"Object does not match target type"</p>
  </blockquote>
  
  <p>error in Visual Studio's error list.  I can't view the designer page now either.  Is this not allowed?  If it is allowed, what's the right way to do it?</p>