title: how to update in to a 2D array?
body: <p>im tunning this loop and what to populate the array with the output of my methods, im not sure about that last part &quot;array2DB[i,i] =&quot; how shold i do this.</p>
  <p>updated loop based on replyes</p>
  <pre><code> private void BackGroundLoop()
      {
          for (int i = 1; i &lt; 31; i++)
          {
              string txbName = &quot;br&quot; + i + &quot;txt&quot; + '3';
  
              TextBox txtBCont1 = (TextBox)this.Controls[txbName];
  
              string string1 = txtBCont1.Text.ToString();
              UpdateFormClass.runUserQuery(string1);
  
              array2DB[0, i - 1] = int.Parse(UpdateFormClass.gamleSaker.ToString());
              array2DB[1, i - 1] = int.Parse(UpdateFormClass.nyeSaker.ToString());
          }
      }
  </code></pre>