title: for each textbox in panel assign a different value from an array c#
body: <p>i have a problem. I have an array and 20 textboxes on panel. i need to assign values from an array to textboxes. but the problem is that textboxes get a value of one number in each iteration. i tried to use <code>continue</code> and <code>break</code> to go to next iteration but it didnt give results.
  Please, help me.</p>
  
  <pre><code>public void generator() 
      {
          int[] array = getUniqueRandomArray(1, 81, 20).ToArray();
  
          for (int i = 0; i &lt; array.Length; i++)
          {
              foreach (TextBox c in panel1.Controls)
              { 
                  c.Text = array[i].ToString();
              }
  
          }
      }
  </code></pre>
  
  <p><code>getUniqueRandomArray(1, 81, 20)</code> - this function generates an array from 1 to 80 and returns 20 numbers.</p>
  
  <p>I would be grateful for help :)</p>