title: How to add picture box to the picturebox array dynamically
body: <p>Hello I have 20 picture boxes in my form1 which I have positioned. I want to add these 20 picture boxes to my picture box array.   I need help </p>
  
  <pre><code> private void Form1_Load(object sender, EventArgs e)
      {
         Control[] pBoxes = new PictureBox[20];
                      for (int i = 0; i &lt; 20; i++)
                      {
                          pBoxes[i] = new PictureBox();
                          PBoxes[i] =System.Windows.Find("PictureBox" + i, true);
                      }
      }
  </code></pre>
  
  <p>I tried like this but it did not work</p>