title: Name of picturebox
body: <p>I have many <code>PictureBox</code>es with the names picturebox_D1, picturebox_D2... D30. </p>
  
  <p>What I'd like to do is to change the images in those <code>PictureBox</code>es, but in loop. Something like this, but working </p>
  
  <pre><code>for (int i = 0; i &lt; 30; i++)
  {                     
      if (ReceivedDataTextBox.Text[i].ToString()=="1") 
          "pictureBox_D"+i.Image= new Bitmap(@"Pictures\\green.png");
      else 
          "pictureBox_D"+i.Image= new Bitmap(@"Pictures\\red.png");
  }
  </code></pre>
  
  <p>How can I do it?</p>