title: Group 64 picture boxes into picturebox array
body: <p>I created 64 picture boxes using the GUI. Now I would like to group these picture boxes into a picturebox array because I need it to constantly update the pictures in the said picture boxes. </p>
  
  <p>I have the following code:</p>
  
  <pre><code>private PictureBox[] pictureBoxArray= new PictureBox[64]; //Initialize array to group picture boxes into picture box array
  
    private void Main_Load(object sender, EventArgs e)
      {
          ConvertGuiPBtoGuiPbArray(ref pictureBoxArray);
      }
  
  public static void ConvertGuiPBtoGuiPbArray(ref PictureBox[] pictureBoxArray)
      {
          foreach(PictureBox index in pictureBoxArray)
          {
          //Some code to do the following:
          pictureBoxArray[0]=pictureBox1; //this is the name of the pictureBox on the GUI
          pictureBoxArray[1]=pictureBox2;
          pictureBoxArray[2]=pictureBox3;
          .
          .
          .
          pictureBoxArray[63]=pictureBox64;
  
         //
  
      }
  </code></pre>
  
  <p>I have seen commands of Controls.ofType but I don't seem to understand it. Any suggestions would be greatly appreciated. Thanks for the help in advance! </p>