title: Textbox to array declaration in C# windows form
body: <p>Hi I’m fairly new to c# programming so please bear with me. I’m currently working on a “simple” little program which allows the user to enter 25 values into the same text box and once this has been done I want to be able to display this 25 values in a list box as an array of 5 row by 5 column and I want to find out the largest number in the array.</p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
  {
      int arrayrows = 5;
      int arraycolomns = 5;
      int[,] arraytimes;
      arraytimes = new int[array rows, array columns];
  
      // list_Matrix.Items.Add(tb_First.Text);
      for (int i = 0; i != 5; i++)
      {
          for (int j = 0; j != 5; j++)
          {
              array times [i,j]= Convert. To Int32(Tb_First.Text);
              list_Matrix.Items.Add(array times[i, j].To String());
          }
      }
  }
  </code></pre>
  
  <p>This is what I've tried for displaying the array in a list box, but it isn't working. This also prevents me from moving to the next section of finding the largest number among them.</p>