title: Foreach control in tabpage
body: <p>So I have this form with a background. The problem was that I had a huge drop, performance wise. So someone told me to just use a picturebox and use "Set to back" to get the same effect.</p>
  
  <p>Now the problem is that the background of my controls are not transparent anymore, but the same as the form background.</p>
  
  <p>So someome told me to use this code:</p>
  
  <pre><code>control.Parent = pictureboxBackground;
  control.BackColor = Color.Transparent;
  </code></pre>
  
  <p>But now I have to write those two lines of code for all of my 20 controls.</p>
  
  <p>So I tried to use the following foreach statement:</p>
  
  <pre><code>foreach (Control but in tabPage2.Controls)
  {
      but.Parent = pictureBox1;
      but.BackColor = Color.Transparent;
  }   
  </code></pre>
  
  <p>But now only half of my controls' backcolors are made transparent. </p>
  
  <p>for example:</p>
  
  <p>Label1 is transparent</p>
  
  <p>label2 isn't</p>
  
  <p>button1 isn't</p>
  
  <p>button2 is transparent</p>
  
  <p>What am I doing wrong?</p>